OpenTelemetry logs / metrics semantics #981
Closed
deepkumar-git
announced in
Community Discussions
Replies: 1 comment 2 replies
-
|
There is no enum data type in metric or log data models per se, however you can decide on the list of valid values for the enum and record the particular value as a string attribute. If efficiency is a concern you can also use integer indexes instead of string values. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am new to OpenTelemetry and is still learning. We are thinking of using Otel as an interoperable vendor agnostic layer for standardizing logs/metrics data models. There is a proprietary data model used by some business units. This model support enumerations in value, that is while filling up value for a key, developers can select from a enum. For example log_category key value could be from a list of "Service", "Debug", "Performance" etc. This is to enforce semantics across business units. Is it possible to have similar semantics in logs/metrics data models of OpenTelemetry, either now or planned for future? Does the SDK support it?
Thanks,
Deep
Beta Was this translation helpful? Give feedback.
All reactions