Skip to content

Commit

Permalink
Docs update
Browse files Browse the repository at this point in the history
  • Loading branch information
abdolence committed Jan 2, 2024
1 parent 68e351c commit c229890
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ fn init_stackdriver_log(
gcp_project_id: &str,
tracer: opentelemetry_sdk::trace::Tracer,
) -> Result<(), BoxedError> {
use tracing_subscriber::prelude::*;
let telemetry_layer = tracing_opentelemetry::layer().with_tracer(tracer);

let stackdriver_layer = tracing_stackdriver::layer().with_cloud_trace(
Expand All @@ -119,12 +118,14 @@ fn init_stackdriver_log(
.with(tracing_subscriber::EnvFilter::from_str(
"gcloud_sdk=debug",
)?);
tracing::subscriber::set_global_default(subscriber).expect("Could not set up global logger");
tracing::subscriber::set_global_default(subscriber)
.expect("Could not set up global logger");

Ok(())
}

async fn init_tracing(app_mode: &GlobalAppMode, gcp_project_id: &str) -> Result<(), BoxedError> {
async fn init_tracing(app_mode: &GlobalAppMode,
gcp_project_id: &str) -> Result<(), BoxedError> {
let tracer = GcpCloudTraceExporterBuilder::new(gcp_project_id.into())
.install()
.await?;
Expand Down

0 comments on commit c229890

Please sign in to comment.