Skip to content

SpanKind immutable to SpanProcessors #1934

@0robustus1

Description

@0robustus1

The SpanKind (span.kind) is inherently considered immutable and only to be set on Span creation.
However a SpanProcessor should be able to essentially perform any kind of change to Spans (especially on the on_start and on_finishing methods).

Currently there is no way to adjust the kind within a Span processor without resulting to unsafe Ruby core functionality (e.g. span.instance_variable_set(:@kind, ::OpenTelemetry::Trace::SpanKind::CONSUMER)). It would be better if there were a dedicated way for a SpanProcessor to adjust the kind.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions