-
Notifications
You must be signed in to change notification settings - Fork 0
tracing.cpp
makr-code edited this page Nov 18, 2025
·
1 revision
Path: src/utils/tracing.cpp
Purpose: Tracing integration for distributed traces (OpenTelemetry etc.) and span helpers.
Public functions / symbols:
if (initialized_) {if (ec) {if (!initialized_) {if (provider) {if (sdk_provider) {if (!initialized_ || tracer_ == nullptr) {if (!tracer) {if (!tracer || !parent.valid_) {if (span_) {if (valid_ && !ended_) {if (this != &other) {if (span_ && !ended_) {THEMIS_WARN("Tracer already initialized");tcp::resolver resolver(io);tcp::socket socket(io);THEMIS_INFO("OpenTelemetry tracer initialized: service={}, endpoint={}", serviceName, endpoint);THEMIS_INFO("OpenTelemetry tracer shut down");return Span(); // Return invalid spanreturn Span(span);return Span(); // No-op spanreturn Span();end();