| Environment Variable Name | Effect | Type | Default |
|---|---|---|---|
| OPENINFERENCE_HIDE_INPUTS | Hides input value, all input messages & embedding input text | bool | False |
| OPENINFERENCE_HIDE_OUTPUTS | Hides output value & all output messages | bool | False |
| OPENINFERENCE_HIDE_INPUT_MESSAGES | Hides all input messages & embedding input text | bool | False |
| OPENINFERENCE_HIDE_OUTPUT_MESSAGES | Hides all output messages | bool | False |
| PENINFERENCE_HIDE_INPUT_IMAGES | Hides images from input messages | bool | False |
| OPENINFERENCE_HIDE_INPUT_TEXT | Hides text from input messages & input embeddings | bool | False |
| OPENINFERENCE_HIDE_OUTPUT_TEXT | Hides text from output messages | bool | False |
| OPENINFERENCE_HIDE_EMBEDDING_VECTORS | Hides returned embedding vectors | bool | False |
| OPENINFERENCE_HIDE_LLM_INVOCATION_PARAMETERS | Hides LLM invocation parameters | bool | False |
| OPENINFERENCE_HIDE_LLM_PROMPTS | Hides LLM prompts span attributes | bool | False |
| OPENINFERENCE_BASE64_IMAGE_MAX_LENGTH | Limits characters of a base64 encoding of an image | int | 32,000 |
- Set environment variables as specified above
- Define the configuration in code as shown below
- Do nothing and fall back to the default values
-
Use a combination of the three, the order of precedence is:
-
Values set in the
TraceConfigin code - Environment variables
- default values
-
Values set in the
- Python
- TypeScript

