Environment variables

Environment variables that configure traceAI tracing.

traceAI SDKs share the following environment-variable names. Support varies by SDK and integration; native OpenTelemetry integrations use the controls documented in their integration guide.

VariablePurposeDefault
FI_API_KEYAuthenticationrequired
FI_SECRET_KEYAuthenticationrequired
FI_BASE_URLHTTP collector endpointhttps://api.futureagi.com
FI_GRPC_URLgRPC collector endpointhttps://grpc.futureagi.com
FI_PROJECT_NAMEDefault project nameNone
FI_PROJECT_VERSION_NAMEDefault versionNone
FI_HIDE_INPUTSRedact inputsFalse
FI_HIDE_OUTPUTSRedact outputsFalse
FI_HIDE_INPUT_MESSAGESRedact input messagesFalse
FI_HIDE_OUTPUT_MESSAGESRedact output messagesFalse
FI_HIDE_INPUT_IMAGESRedact input imagesFalse
FI_HIDE_INPUT_TEXTRedact input textFalse
FI_HIDE_OUTPUT_TEXTRedact output textFalse
FI_HIDE_EMBEDDING_VECTORSRedact embedding vectorsFalse
FI_HIDE_LLM_INVOCATION_PARAMETERSRedact model parametersFalse
FI_BASE64_IMAGE_MAX_LENGTHMax base64 image chars32000
FI_PII_REDACTIONAuto-mask PII (Python)False
FI_HIDE_ERROR_DETAILSHide error messages and stack traces on supported traceAI spans. Use Python fi-instrumentation-otel 1.2.3 or later or TypeScript @traceai/fi-core 1.1.1 or later. See Errors and privacyWhen unset, derived from the resolved input/output content flags in code or the environment; see below

For Python and TypeScript, FI_HIDE_ERROR_DETAILS defaults to true when any of hide_inputs, hide_outputs, hide_input_messages, hide_output_messages, hide_input_text, or hide_output_text is true (camelCase in TypeScript). These flags can come from code or their FI_ environment variables. Otherwise, it defaults to false. Image-only, embedding-vector, invocation-parameter, and PII masking do not enable it. An explicit error-details setting in code takes precedence over FI_HIDE_ERROR_DETAILS; an explicit environment value takes precedence over the derived default.

Was this page helpful?

Questions & Discussion