MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/cpp-samples / Cleanup

Function Cleanup

pubsub-open-telemetry/blocking_publisher.cc:48–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48void Cleanup() {
49 auto* provider = dynamic_cast<trace_sdk::TracerProvider*>(
50 trace::Provider::GetTracerProvider().get());
51 if (provider == nullptr) return;
52 provider->ForceFlush();
53
54 std::shared_ptr<trace::TracerProvider> none;
55 trace::Provider::SetTracerProvider(none);
56}
57
58} // namespace
59

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected