Skip to content

Align trace ID and span ID naming with other SDKs #1744

@piotrooo

Description

@piotrooo

What is the expected behavior?
The opentelemetry-php/contrib-auto-psr3 project sets traceId and spanId in camelCase:

https://github.com/opentelemetry-php/contrib-auto-psr3/blob/eebb2559a84e9fd653cbf736c2209f44772c8cc2/src/Psr3Instrumentation.php#L57-L58

What is the actual behavior?
All other SDKs use trace_id and span_id written in snake_case.
Is this intentional, or should it be changed to comply with other SDKs?

Tip: React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions