-
Notifications
You must be signed in to change notification settings - Fork 238
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
Collector on ECS Fargate not showing the correct environment in X-Ray #590
Comments
Also opened an issue on open-telemetry/opentelemetry-dotnet-contrib#146 for further investigation in the .NET portion. |
Hey @CarmenAPuccio , Thanks for bring this up OTel .NET SDK by default sets an instance id in the resource attributes when you apply When you're applying extension API AddService to the Also, OTel .NET SDK currently doesn't have public resource detector API provided yet, you may switch to use the ones on collector side. |
@lupengamzn - Thanks for the heads up. Setting up a resource detection processor on the collector worked perfect for ECS/Fargate. Unrelated to the collector but still digging - I'm still noticing that the client-ip isn't making it into the x-ray traces with the latest .NET packages though. I see you are working on this on open-telemetry/opentelemetry-dotnet#1546 it would be awesome if that could be merged.
|
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
This issue was closed because it has been marked as stall for 30 days with no activity. |
I'm trying to spin up a custom app in ECS Fargate with the latest version of the aws-otel-collector (v11) and I'm seeing interesting results in X-Ray depending on the X-Ray SDK used (Go vs .NET). Obviously this leads me to believe it's an SDK specific issue but I'm opening the issue here first to see if there are any suggestions. I'm expecting to see information about the environment in X-Ray such as AWS::ECS::Container in the service map and corresponding traces but I'm getting mixed results. When i deploy the CloudFormation template as outlined in the aws-otel docs I'm noticing that there is no information about the environment as seen below.
My own sample application is written in .NET 5.0.302 with the latest packages (listed below) but interestingly enough when I deploy to ECS Fargate instead of no origin/environment it's listed as "origin": "AWS::ElasticBeanstalk::Environment" as shown below. The .NET SDK obviously exposes more data but it's obviously still incorrect.
In both cases, I'm running the aws-otel-collector with the config that comes in the image
--config=/etc/ecs/container-insights/otel-task-metrics-config.yaml
Package References:
The text was updated successfully, but these errors were encountered: