Skip to content

Commit

Permalink
fixup! opentelemetry: add semconv exception fields
Browse files Browse the repository at this point in the history
  • Loading branch information
lilymara-onesignal committed Jun 22, 2022
1 parent d0ad1bf commit d578dd8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tracing-opentelemetry/src/layer.rs
Expand Up @@ -267,8 +267,8 @@ impl<'a, 'b> field::Visit for SpanEventVisitor<'a, 'b> {
}
}

#[derive(Clone, Copy)]
/// Control over opentelemetry conventional exception fields
#[derive(Clone, Copy)]
struct ExceptionFieldConfig {
/// If an error value is recorded on an event/span, should the otel fields
/// be added
Expand Down Expand Up @@ -425,8 +425,8 @@ where
tracked_inactivity: true,
with_threads: true,
exception_config: ExceptionFieldConfig {
record: true,
propagate: true,
record: false,
propagate: false,
},
get_context: WithContext(Self::get_context),
_registry: marker::PhantomData,
Expand Down

0 comments on commit d578dd8

Please sign in to comment.