Skip to content

ENABLE_SENSITIVE_DATA=on is not honoured #64

Description

@shibayan

What happens

ENABLE_SENSITIVE_DATA is read as a compatibility alias for
OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT, but the values accepted as true are true,
1 and yes. Python accepts true, 1, yes and on.

A deployment that sets ENABLE_SENSITIVE_DATA=on therefore captures message content in a Python
process and silently does not in a TypeScript one — which is the case the alias exists to cover.
The failure is quiet in the direction that costs debugging time: telemetry simply arrives without
the message content the operator asked for.

Expected

The same truthy set as Python, for both spellings of the variable.

Acceptance criteria

  • ENABLE_SENSITIVE_DATA=on enables capture.
  • Unset and unrecognized values leave it off, and an explicit setting through
    configureObservability still wins over the environment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    coreUsage: [Issues, PRs], Target: packages/coreobservabilityUsage: [Issues, PRs], Target: tracing, metrics, and observability

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions