You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to use an opentelemetry backend to collect most of my traces. However, I would also like to be able to glance at them and only see important happenings. tracing has the nice concept of levels for this usecase, opentelemetry does not natively, but has custom fields.
This is in relation to the discussion #177.
Proposal
I propose to also attach the level of a tracing span to the opentelemetry span.
As far as I can entail, this would been adding an builder_attrs.push(KeyValue::new("level", attrs.metadata().level())); to Layer::on_new_span and possibliy adding a setting to enable this.
(this might be breaking, if it overrides custom "level" attributes).
I'm happy to make this change, but wanted to ask for feedback fist.
Alternatives
Alternatively, one could always attach an own field, but this entails a lot of duplication.
The text was updated successfully, but these errors were encountered:
See #180 for a description.
This PR implements the `OpenTelemetryLayer::with_level` setting, to
disable (enabled by default) attaching the level tag to exported spans.
Feature Request
Motivation
I would like to use an opentelemetry backend to collect most of my traces. However, I would also like to be able to glance at them and only see important happenings.
tracing
has the nice concept of levels for this usecase, opentelemetry does not natively, but has custom fields.This is in relation to the discussion #177.
Proposal
I propose to also attach the
level
of atracing span
to the opentelemetry span.As far as I can entail, this would been adding an
builder_attrs.push(KeyValue::new("level", attrs.metadata().level()));
to Layer::on_new_span and possibliy adding a setting to enable this.(this might be breaking, if it overrides custom "level" attributes).
I'm happy to make this change, but wanted to ask for feedback fist.
Alternatives
Alternatively, one could always attach an own field, but this entails a lot of duplication.
The text was updated successfully, but these errors were encountered: