aws / apprunner-roadmap

This is the public roadmap for AWS App Runner.
https://aws.amazon.com/apprunner/
Other
292 stars 13 forks source link

XRay attributes using OpenTelemetry #154

Open matias-desanti opened 1 year ago

matias-desanti commented 1 year ago

Tell us about your request I've just instrumented my application using OpenTelemetry. Data is showing just fine in xray but I would like to add some custom fields to xray annotations. Currently I am adding custom attributes (opentelemetry.trace.getActiveSpan()?.setAttribute('user_id', user.user_id);) to the span and that is added to the metadata but i find no way of making that part of the annotations.

For what I can see in the documentation if I want to add custom attributes to the annotations I would need to edit the collector's configuration. Is there any way of configuring this?

Describe alternatives you've considered I have tried opentelemetry.trace.getActiveSpan()?.setAttribute('user_id', user.user_id); but it gets added into the metadata part of xray