|
|
NVIDIA DeepStream SDK API Reference
|
9.2 Release
|
Go to the documentation of this file.
8 #include "opentelemetry/common/attribute_value.h"
9 #include "opentelemetry/common/timestamp.h"
10 #include "opentelemetry/logs/severity.h"
11 #include "opentelemetry/nostd/string_view.h"
12 #include "opentelemetry/sdk/instrumentationscope/instrumentation_scope.h"
13 #include "opentelemetry/sdk/logs/recordable.h"
14 #include "opentelemetry/sdk/resource/resource.h"
15 #include "opentelemetry/trace/span_id.h"
16 #include "opentelemetry/trace/trace_flags.h"
17 #include "opentelemetry/trace/trace_id.h"
18 #include "opentelemetry/version.h"
21 #include "opentelemetry/exporters/otlp/protobuf_include_prefix.h"
22 #include "opentelemetry/proto/logs/v1/logs.pb.h"
23 #include "opentelemetry/exporters/otlp/protobuf_include_suffix.h"
40 proto::logs::v1::LogRecord &
log_record() noexcept {
return proto_record_; }
41 const proto::logs::v1::LogRecord &
log_record() const noexcept {
return proto_record_; }
44 const opentelemetry::sdk::resource::Resource &
GetResource() const noexcept;
118 &instrumentation_scope) noexcept override;
121 proto::
logs::v1::LogRecord proto_record_;
123 const
opentelemetry::
sdk::instrumentationscope::InstrumentationScope *instrumentation_scope_ =
void SetAttribute(nostd::string_view key, const opentelemetry::common::AttributeValue &value) noexcept override
Set an attribute of a log.
void SetTraceFlags(const opentelemetry::trace::TraceFlags &trace_flags) noexcept override
Inject trace_flags for this log.
#define OPENTELEMETRY_BEGIN_NAMESPACE
void SetInstrumentationScope(const opentelemetry::sdk::instrumentationscope::InstrumentationScope &instrumentation_scope) noexcept override
Set instrumentation_scope for this log.
nostd::variant< bool, int32_t, int64_t, uint32_t, double, const char *, nostd::string_view, nostd::span< const bool >, nostd::span< const int32_t >, nostd::span< const int64_t >, nostd::span< const uint32_t >, nostd::span< const double >, nostd::span< const nostd::string_view >, uint64_t, nostd::span< const uint64_t >, nostd::span< const uint8_t > > AttributeValue
OpenTelemetry signals can be enriched by adding attributes.
void SetTraceId(const opentelemetry::trace::TraceId &trace_id) noexcept override
Set the trace id for this log.
#define OPENTELEMETRY_END_NAMESPACE
const opentelemetry::sdk::instrumentationscope::InstrumentationScope & GetInstrumentationScope() const noexcept
Returns the associated instruementation scope.
void SetEventId(int64_t, nostd::string_view event_name) noexcept override
Set the Event Id for this log.
~OtlpLogRecordable() override=default
An OTLP Recordable implemenation for Logs.
void SetSpanId(const opentelemetry::trace::SpanId &span_id) noexcept override
Set the span id for this log.
void SetTimestamp(opentelemetry::common::SystemTimestamp timestamp) noexcept override
Set the timestamp for this log.
void SetObservedTimestamp(opentelemetry::common::SystemTimestamp timestamp) noexcept override
Set the observed timestamp for this log.
const opentelemetry::sdk::resource::Resource & GetResource() const noexcept
Returns the associated resource.
const proto::logs::v1::LogRecord & log_record() const noexcept
Severity
Severity Levels assigned to log events, based on Log Data Model, with the addition of kInvalid (mappe...
void SetResource(const opentelemetry::sdk::resource::Resource &resource) noexcept override
Set Resource of this log.
void SetBody(const opentelemetry::common::AttributeValue &message) noexcept override
Set body field for this log.
void SetSeverity(opentelemetry::logs::Severity severity) noexcept override
Set the severity for this log.
proto::logs::v1::LogRecord & log_record() noexcept
std::string_view string_view