Thanks to visit codestin.com
Credit goes to github.com

Skip to content

TraceLoggingEnhancer sets trace ID in the wrong field #3280

@joaoandremartins

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.

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