Skip to content

[Bug]: OTEL logs raw Authentication token to std-out on auth error #3021

Open
@pulasthibandara

Description

@pulasthibandara

What happened?

OTEL logs the raw bearer token to stdout when an error happens on a processor during authentication. The log processor returns an Authentication error due to a misconfiguration, and in-return OTEL logs the the bearer token to stdout.

OpenTelemetry API Version (i.e version of opentelemetry crate)

"0.29.1"

OpenTelemetry SDK Version (i.e version of opentelemetry_sdk crate)

"0.29.0"

What Exporter(s) are you seeing the problem on?

OTLP

Relevant log output

ERROR opentelemetry_sdk: name="BatchLogProcessor.ExportError" error="Operation failed: export error: Status { code: Unauthenticated, message: \"scheme or token does not match: Bearer <redacted-token>\", metadata: MetadataMap { headers: {\"content-type\": \"application/grpc\"} }, source: None }"

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-commonArea:common issues that not related to specific pillarM-exporter-otlpbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions