Skip to content

TraceLoggingEnhancer sets trace ID in the wrong field #3280

Description

@joaoandremartins

The trace ID of a log entry is being set in the wrong field (label).

In order for the log entries to be linked to the trace, the TraceLoggingEnhancer needs to look something like this.

  1. Use setTrace(), not setLabel()
  2. Use a project/myProjectId/traces/myTraceId format.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: loggingIssues related to the Cloud Logging API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions