switch all tracing imports to observability::prelude

This commit is contained in:
Olivia Lee 2024-12-14 00:49:56 -08:00
parent bc5f31b3a2
commit 5fca67054e
No known key found for this signature in database
GPG key ID: 54D568A15B9CD1F9
63 changed files with 824 additions and 735 deletions

View file

@ -4,7 +4,7 @@ use std::path::PathBuf;
use thiserror::Error;
use crate::config::ListenConfig;
use crate::{config::ListenConfig, observability::prelude::*};
/// Top-level errors
// Missing docs are allowed here since that kind of information should be
@ -16,7 +16,7 @@ pub(crate) enum Main {
ServeCommand(#[from] ServeCommand),
#[error("failed to install global default tracing subscriber")]
SetSubscriber(#[from] tracing::subscriber::SetGlobalDefaultError),
SetSubscriber(#[from] t::subscriber::SetGlobalDefaultError),
#[error(transparent)]
CheckConfigCommand(#[from] CheckConfigCommand),
@ -84,7 +84,7 @@ pub(crate) enum Observability {
Otel(#[from] opentelemetry::trace::TraceError),
#[error("failed to install global default tracing subscriber")]
SetSubscriber(#[from] tracing::subscriber::SetGlobalDefaultError),
SetSubscriber(#[from] t::subscriber::SetGlobalDefaultError),
// Upstream's documentation on what this error means is very sparse
#[error("tracing_flame error")]