How can I change Service Name? #1832
Answered
by
serkan-ozal
tarek-sater-pf
asked this question in
Q&A
-
Hi I'm receiving logs with OTLP but I tried setting OTEL_SERVICE_NAME and OTEL_RESOURCE_ATTRIBUTES and manual instrumentation via ATTR_SERVICE_NAME, but still I only get the function name. Is there any way to set it? |
Beta Was this translation helpful? Give feedback.
Answered by
serkan-ozal
Jul 17, 2025
Replies: 1 comment 4 replies
-
I don't think it's consistent between languages. Which language? Here's an example of how this is implemented for Nodejs: https://github.com/open-telemetry/opentelemetry-lambda/blob/main/nodejs/packages/layer/scripts/otel-handler#L7 |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @tarek-sater-pf,
That issue is fixed by this PR: #1852
And if you try with the latest Lambda collector layer (https://github.com/open-telemetry/opentelemetry-lambda/releases/tag/layer-collector%2F0.16.0), it should be fixed.