-
Notifications
You must be signed in to change notification settings - Fork 896
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What capitalization of field names to use for trace context in non-OTLP Log Formats #3518
Comments
@open-telemetry/specs-logs-approvers @open-telemetry/specs-approvers now that logs are stable, it would be great if we can get consensus on this In particular, it looks like Java and Go may already be using different field names: open-telemetry/opentelemetry-java#5528 Also, see a third option which would align with ECS: #3303 (cc @AlexanderWert @ruflin from ECS perspective) |
On my end, I would expect that semconv uses the same convention for all signals and fields. For things like I assume because of backward compatibility, some fields will keep existing that don't follow the general convention. But is there a decision made on what the convention is? My current assumption is it is dot notation with |
Are you proposing to use |
Something to think about: While its true that OTLP/JSON converts keys to I'd argue |
I agree with @jack-berg's arguments. I don't see strong enough arguments to make a disruptive change. |
No other new arguments brought up. Closing, will keep the spec as is. |
Closes #3303 ## Changes From @tigrannajaryan in #3303 (comment): > I think the conclusion in #3518 was that we keep the names. It has been a while and there is no new evidence that we need to do something else so I suggest that we submit a PR that declares https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/compatibility/logging_trace_context.md "Stable" and closes this issue. This marks the specification for using `trace_id`, `span_id`, and `trace_flags` in non-OTLP logging formats stable.
…elemetry#3909) Closes open-telemetry#3303 ## Changes From @tigrannajaryan in open-telemetry#3303 (comment): > I think the conclusion in open-telemetry#3518 was that we keep the names. It has been a while and there is no new evidence that we need to do something else so I suggest that we submit a PR that declares https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/compatibility/logging_trace_context.md "Stable" and closes this issue. This marks the specification for using `trace_id`, `span_id`, and `trace_flags` in non-OTLP logging formats stable.
Trace Context in non-OTLP Log Formats uses snake case for field names currently: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/compatibility/logging_trace_context.md
The OTLP/JSON which is another format where field names are recorded as text uses camelCase (traceId, spanId).
Should we change recommendation for non-OTLP formats to use use camelCase?
@open-telemetry/specs-logs-approvers @open-telemetry/specs-approvers what do you think?
Relation PR that previously suggested yet another approach (using dots to match ECS): #3469
The text was updated successfully, but these errors were encountered: