-
Notifications
You must be signed in to change notification settings - Fork 56
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
XRay traces not connected to log entries in Cloudwatch #205
Comments
Hi @mpetrik-profinit, thanks for raising this! The problem appears to be that the Java EKS resource detector does not record the We will add a backlog task to add this functionality. We are also open to a PR to copy in this functionality to the EKS Detector!
Could you elaborate more? What value did you set |
I think our best option is to update the resource detectors while the issue with the spec is not solved. I will be working in adding the same logic that is used in the xray sdk to all sdks that implement resource detectors. |
Moved discussion to upstream open-telemetry/opentelemetry-java-contrib#564 |
In the next release of the aws-otel-collector, v0.26.0 , we will add a couple of features that will make your life easier.
Unfortunately it is not possible to solve this issue in the resource detectors as there is no way to implement the log group detection in a stable and reproducible way. |
Hi, However, collector v0.26.0 was released. It is now possible to set the log group property using the two mechanisms described above. https://github.com/aws-observability/aws-otel-collector/releases/tag/v0.26.0 Please use the Please refer to this section: I'm going to close the ticket since the original problem was addressed. Please reopen if you are still having issues. |
Describe the bug
We've migrated from Java X-Ray SDK to AWS OTEL. And the thing we are facing now is the absence of log records while analyzing traces. This worked with X-Ray SDK:
However, with OTEL, the logs are not mapped (we use Fluentbit). The only difference we've found in the metrics/traces messages (compared to XRay SDK) is the absence of the following key:
The aws.cloudwatch_logs.log_group is missing when using OTEL. The documentation says it translates from aws.log.group.names (https://aws-otel.github.io/docs/getting-started/x-ray#otel-span-cw-logs-metadata-translation).
Steps to reproduce
Call a REST Endpoint (the endpoint logs to console with Log4J2). The log is visible in Cloudwatch, the log entry contains AWS_XRAY_TRACE_ID.
What did you expect to see?
I see a log entry in the trace detail (as with the previous XRay SDK)
What did you see instead?
I see traces without log information, however, the log entries are visible in Log groups in Cloudwatch.
Additional context
We've tried configuration using environment properties (AWS_LOG_GROUP_NAMES/ARNS), in OTEL_RESOURCE_ATTRIBUTES, in span attributes, however, with no luck. Are we missing some kind of configuration (pod roles?) here?
The text was updated successfully, but these errors were encountered: