Skip to content

Issue with trace and correlation #1230

Open
@vaishnavi-accountbox

Description

@vaishnavi-accountbox

Hi,

I am inserting couple of logs with slf4j, with a same trace, But still they are not displaying as different logs, How to fix this ? Here is the image https://snipboard.io/u8mBf5.jpg

Here is my appender

INFO application.log gae_app com.survey.util.LogEnhancer WARN
<root level="info">
    <appender-ref ref="CLOUD" />
</root>

Here is my enhancer

@OverRide
public void enhanceLogEntry(LogEntry.Builder logEntry) {

        logEntry.setTrace("12345678");

        // add additional labels
        logEntry.addLabel("test-label-1", "test-value-1");
        logEntry.addLabel("eb-survey-log", "test-value-1");

  }

Please help

Metadata

Metadata

Assignees

Labels

api: loggingIssues related to the googleapis/java-logging-logback API.priority: p3Desirable enhancement or fix. May not be included in next release.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions