Skip to content

Commit

Permalink
Use correct library name in examples (#456)
Browse files Browse the repository at this point in the history
  • Loading branch information
bergjohan authored Jun 11, 2024
1 parent 415f182 commit 3d4b901
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions instrumentation/glog/example/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ int main(int /* argc */, char **argv)
}

// Set up trace, span and context
auto tracer = trace_api::Provider::GetTracerProvider()->GetTracer("log4cxx_library",
auto tracer = trace_api::Provider::GetTracerProvider()->GetTracer("glog_library",
OPENTELEMETRY_SDK_VERSION);
auto span = tracer->StartSpan("log4cxx test span");
auto span = tracer->StartSpan("glog test span");
auto ctx = context::RuntimeContext::GetCurrent();
auto new_ctx = ctx.SetValue("active_span", span);
auto token = context::RuntimeContext::Attach(new_ctx);
Expand Down
4 changes: 2 additions & 2 deletions instrumentation/spdlog/example/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ int main(int /* argc */, char ** /* argv */)
}

// Set up trace, span and context
auto tracer = trace_api::Provider::GetTracerProvider()->GetTracer("log4cxx_library",
auto tracer = trace_api::Provider::GetTracerProvider()->GetTracer("spdlog_library",
OPENTELEMETRY_SDK_VERSION);
auto span = tracer->StartSpan("log4cxx test span");
auto span = tracer->StartSpan("spdlog test span");
auto ctx = context::RuntimeContext::GetCurrent();
auto new_ctx = ctx.SetValue("active_span", span);
auto token = context::RuntimeContext::Attach(new_ctx);
Expand Down

0 comments on commit 3d4b901

Please sign in to comment.