How is "{{- index .Annotations \"otel-service-name\" -}}" resolved #2046
-
When adding a container, to add Otlp exporter,
context.EnvironmentVariables["OTEL_SERVICE_NAME"] = "{{- index .Annotations \"otel-service-name\" -}}"; When and how is My workaround was to invoke |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
cc @karolz-ms |
Beta Was this translation helpful? Give feedback.
-
That said, in the current code the annotation is only added to objects that get run as ordinary processes, not containers. That's probably a bug and we should probably be adding that annotation to everything that might export telemetry. @JamesNK @mitchdenny what do you guys think? |
Beta Was this translation helpful? Give feedback.
Right, I think the workaround you have is the best solution for now. Sorry, I should have been more specific.