Skip to content
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

Allow for reading and mutating a span name #88

Merged
merged 2 commits into from
Feb 27, 2023
Merged

Conversation

ktoso
Copy link
Member

@ktoso ktoso commented Feb 24, 2023

Motivation:

The feature frozen otel specification allows for renaming spans after they have been started. This often is too late to impact sampling decisions, however we still can use to to provide better names for spans as time goes on.

Modifications:

add an operationName to the Span protocol.

A span has to be thread-safe already and we have mutating operations on it already so it does not change the complexity requirements on implementing a span.

Result:

Be closer to otel spec and more flexible in naming and renaming spans.
Resolves #48

@ktoso
Copy link
Member Author

ktoso commented Feb 24, 2023

If unsure about this feature, please check the #48 discussion and otel's justification which I think is reasonable https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md#updatename

**Motivation:**

The feature frozen otel specification allows for renaming spans after
they have been started. This often is too late to impact sampling
decisions, however we still can use to to provide better names for spans
as time goes on.

**Modifications:**

add an operationName to the Span protocol.

A span has to be thread-safe already and we have mutating operations on
it already so it does not change the complexity requirements on
implementing a span.

**Result:**

Be closer to otel spec and more flexible in naming and renaming spans.

Resolves #48
@ktoso ktoso changed the title Allow for reading and mutating a span name, similar to otel spec Allow for reading and mutating a span name Feb 24, 2023
Copy link
Collaborator

@slashmo slashmo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ktoso ktoso merged commit b7a1e20 into main Feb 27, 2023
@ktoso ktoso deleted the wip-mutableOperation-name branch February 27, 2023 02:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow mutation of span operation name
3 participants