Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenTelemetry log tracing output contains "n" at the beginning of every line #3273

Closed
Piumal1999 opened this issue Oct 21, 2024 · 0 comments · Fixed by wso2/product-apim#13593
Assignees

Comments

@Piumal1999
Copy link

Description

In the wso2-apimgt-open-tracing.log file, an "n" character appears at the beginning of each new line, except for the first line. Might be an issue with printing the new line.

Steps to Reproduce

  1. Follow the "Enabling Log Tracing" tutorial in [1].
  2. Invoke some APIs and check the wso2-apimgt-open-tracing.log file.

[1] https://apim.docs.wso2.com/en/latest/observe/api-manager/traces/monitoring-with-opentelemetry/#!

Affected Component

APIM

Version

4.4.0-beta

Environment Details (with versions)

JDK 21
MacOS 15

Relevant Log Output

10:26:13,110 [-] [BatchSpanProcessor_WorkerThread-1] TRACE {"Span Id":"c5aad99e8676a680","Tracer Id":"a7e61887ff9242ae8b3cf179365cd66b","Operation":"OPTIONS--/menu","Latency":"12ms","Tags":"{}"}
n10:26:13,110 [-] [BatchSpanProcessor_WorkerThread-1] TRACE {"Span Id":"156e8e0d9c9bc066","Tracer Id":"a7e61887ff9242ae8b3cf179365cd66b","Operation":"PizzaShackAPI--1.0.0--carbon.super","Latency":"13ms","Tags":"AttributesMap{data={span.resource=/menu, span.api.name=PizzaShackAPI, span.http.response.status.code=200, span.request.method=OPTIONS, span.activity.id=30e2af86-1b05-41a0-97b6-af99fe3cdee9, span.request.path=pizzashack/1.0.0/menu, span.api.version=1.0.0}, capacity=128, totalAddedValues=7}"}
n10:26:13,110 [-] [BatchSpanProcessor_WorkerThread-1] TRACE {"Span Id":"7aa27a742cbe85d9","Tracer Id":"a7e61887ff9242ae8b3cf179365cd66b","Operation":"API:CORS_Request_Latency","Latency":"8ms","Tags":"{}"}
...

Related Issues

No response

Suggested Labels

No response

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

Successfully merging a pull request may close this issue.

3 participants