-
I can see there is a way to specify service.name and any other attributes using OTEL_SERVICE_NAME and OTEL_RESOURCE_ATTRIBUTES env variables. As I can see, it's global defaults for service_name and other attributes. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I found the solution, it was to create Resource and pass it to exporter/tracer (prometheus/jaeger) for WithResource function. |
Beta Was this translation helpful? Give feedback.
-
These can be done by constructing a |
Beta Was this translation helpful? Give feedback.
These can be done by constructing a
*resource.Resource
with the desired attributes and using it to construct aTracerProvider
using theWithResource
option.