Skip to content

SpanBuilder should not allow with_span_id and with_trace_id #2743

@cijothomas

Description

@cijothomas

https://github.com/open-telemetry/opentelemetry-rust/blob/main/opentelemetry/src/trace/tracer.rs#L242
with_trace_id, with_span_id allow one to specify TraceId,SpanId via builder - there is no such capability in the specification.
If user want to control traceid,spanid generation, they can use IdGenerator.

This must be removed from SpanBuilder

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions