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

Unable to see OpenTelemetry Span Events in AWS X-Ray #73

Closed
rcooper85 opened this issue Aug 23, 2021 · 4 comments
Closed

Unable to see OpenTelemetry Span Events in AWS X-Ray #73

rcooper85 opened this issue Aug 23, 2021 · 4 comments
Labels

Comments

@rcooper85
Copy link

rcooper85 commented Aug 23, 2021

Describe the bug
When trying to add a Span Event to a span using the span.current.addEvent() method in OpenTelemetry, the event is not visible in AWS X-Ray. We can see our custom spans but none of the Events.
Steps to reproduce
We are using a Java SpringBoot application using the spring-boot-starter-parent version 2.4.5. We are using the opentelemetry-otlp-exporter-starter 1.4.1-alpha dependency.

We created a docker image for our application that adds the aws-opentelemetry-agent.jar (v1.4.1) into the image when we build it. We then run as a javaagent when the image is deployed. We deploy our application to ECS Fargate and we then run the aws-otel-collector as a sidecar with the default configuration.

What did you expect to see?
We expected to see our span events either as annotations or metadata in our spans.

What did you see instead?
We just saw our custom spans without any Span Events.

Additional context
We are also experiencing the same behaviour when we use Elastic as the backend for observability. This is due to this issue

@anuraaga
Copy link
Contributor

Thanks for filing this @rcooper85 - indeed similar to Elastic, the X-Ray data model itself doesn't contain the concept of events so supporting them will be a big change including the backend. Events can be pretty interesting so hopefully we can add support for them but it will take some time.

@rcooper85
Copy link
Author

Hi @anuraaga - thank you for your quick response on this. Is that the same for setStatus for spans too? As we are not seeing the status in X-Ray either when we use, for example: Span.current().setStatus(StatusCode.OK, "Order Received");

@github-actions
Copy link

github-actions bot commented Oct 2, 2022

This issue is stale because it has been open 90 days with no activity. If you want to keep this issue open, please just leave a comment below and auto-close will be canceled

@github-actions github-actions bot added the stale label Oct 2, 2022
@github-actions
Copy link

github-actions bot commented Nov 6, 2022

This issue was closed because it has been marked as stale for 30 days with no activity.

@github-actions github-actions bot closed this as completed Nov 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants