Skip to content

Commit

Permalink
fix(config): Do not panic for observability config
Browse files Browse the repository at this point in the history
Signed-off-by: Danil <deniallugo@gmail.com>
  • Loading branch information
Deniallugo committed Aug 12, 2024
1 parent 931e452 commit 861055c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/lib/protobuf_config/src/observability.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ impl ProtoRepr for proto::Observability {
opentelemetry: self
.opentelemetry
.as_ref()
.map(|cfg| cfg.read().context("opentelemetry"))
.transpose()?,
.map(|cfg| cfg.read().ok())
.flatten(),
log_directives: self.log_directives.clone(),
})
}
Expand Down

0 comments on commit 861055c

Please sign in to comment.