Attribute Naming for attribute/scope in Logger regarding OTEL Specification #5954
Unanswered
jdevillard
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I make a lot of search and didn't really find an answer on this topic.
The subject is the casing of the attributes when we log data and want to be able to use it correctly using OpenTelemetry and a backend tool.
If I look at the Otel specification, https://opentelemetry.io/docs/specs/semconv/general/attribute-naming/ , I can see the following :
but when I take a look at the different sample in the DotNet documentation and Sample (https://github.com/open-telemetry/opentelemetry-dotnet/blob/main/docs/logs/getting-started-console/README.md), i see this kind of example :
(
name
andprice
a lowercase (1 word) butOriginalFormat
that comes from the SDK if I'm not wrong isPascalCase
)brandName
,productDescription
etc.. arecamelCase
Should not be
snake_case
?I'm asking because in one of our application, we are setting Otel for Metrics and Logs, and some tag in Metrics are well set in lowercase and dot-namespaced but not in the Log. Because of this , in the back-end which could be case sensitive on attribute, we cannot filter and correlate log/metrics correctly.
So we would like to find the recommended way to do this.
Is the OTEL naming scheme the recommended way to use for logger state in .NET?
or do we need to use some logEnrichment or processor to get the correct naming?
Beta Was this translation helpful? Give feedback.
All reactions