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

[Bug]: Ballerina traces not listed as a child in API Manager #43756

Open
NipunaMadhushan opened this issue Jan 20, 2025 · 0 comments
Open

[Bug]: Ballerina traces not listed as a child in API Manager #43756

NipunaMadhushan opened this issue Jan 20, 2025 · 0 comments
Assignees
Labels
Team/Observability Observability in general, Metrics, Tracing & Logging Type/Bug

Comments

@NipunaMadhushan
Copy link
Contributor

Description

There is an example http service that has implemented observable and jaeger modules using otel collector, and is exposed by traefik and wso2 apim 4.4.0. Ballerina service has been exposed as an endpoint in an API exposed through APIM.
I can see the trace traefik -> apim as child, but ballerina is in a different trace.
Ballerina service should appear as a child of traefik and apim.

ballerina: started publishing traces to Jaeger on localhost:4317
time=2025-01-07T06:10:07.776-06:00 level=INFO module=wso2/albums message="Accept:/" traceId="66be1a05f0d3dccb5c7b1940606d94b2" spanId="47d5672b7245617b"
time=2025-01-07T06:10:07.828-06:00 level=INFO module=wso2/albums message="Accept-Encoding:gzip, deflate, br" traceId="66be1a05f0d3dccb5c7b1940606d94b2" spanId="47d5672b7245617b"
time=2025-01-07T06:10:07.838-06:00 level=INFO module=wso2/albums message="activityid:edd9ef87-83cd-409e-a4b7-74bbf97a738b" traceId="66be1a05f0d3dccb5c7b1940606d94b2" spanId="47d5672b7245617b"
time=2025-01-07T06:10:07.857-06:00 level=INFO module=wso2/albums message="Connection:Keep-Alive" traceId="66be1a05f0d3dccb5c7b1940606d94b2" spanId="47d5672b7245617b"
time=2025-01-07T06:10:07.887-06:00 level=INFO module=wso2/albums message="Host:localhost:9090" traceId="66be1a05f0d3dccb5c7b1940606d94b2" spanId="47d5672b7245617b"
time=2025-01-07T06:10:07.899-06:00 level=INFO module=wso2/albums message="Traceparent:00-28a927a37a6531305958e5253eeffc64-1974eab72c4e43ea-01" traceId="66be1a05f0d3dccb5c7b1940606d94b2" spanId="47d5672b7245617b"
time=2025-01-07T06:10:07.911-06:00 level=INFO module=wso2/albums message="User-Agent:Synapse-PT-HttpComponents-NIO" traceId="66be1a05f0d3dccb5c7b1940606d94b2" spanId="47d5672b7245617b"

The configurations are as follows.
Config.toml -

[ballerina.observe]
tracingEnabled=true
tracingProvider="jaeger"

[ballerinax.jaeger]
agentHostname="localhost"
agentPort=4317
samplerType="const"
samplerParam=1.0
reporterFlushInterval=2000
reporterBufferSize=1000

deployment.toml -

[apim.open_telemetry]
remote_tracer.enable = true
remote_tracer.name = "otlp"
remote_tracer.url = "http://otel-otel-collector-1:4317/v1/traces"

[[apim.open_telemetry.remote_tracer.properties]]
name = "apim"
value = "4.4.0"

### Steps to Reproduce

_No response_

### Affected Version(s)

Ballerina version - 2201.10.3

### OS, DB, other environment details and versions

APIM version - 4.4.0

### Related area

-> Observability

### Related issue(s) (optional)

_No response_

### Suggested label(s) (optional)

_No response_

### Suggested assignee(s) (optional)

_No response_
@NipunaMadhushan NipunaMadhushan self-assigned this Jan 20, 2025
@ballerina-bot ballerina-bot added the Team/Observability Observability in general, Metrics, Tracing & Logging label Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team/Observability Observability in general, Metrics, Tracing & Logging Type/Bug
Projects
None yet
Development

No branches or pull requests

2 participants