mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-18 00:01:24 +01:00
switch all tracing imports to observability::prelude
This commit is contained in:
parent
bc5f31b3a2
commit
5fca67054e
63 changed files with 824 additions and 735 deletions
|
|
@ -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")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue