Skip to content

[Logs SDK] OTLP Log Exporter - Populate Instrumentation Scope attributes #2008

@lalitb

Description

@lalitb

Dependent on #1690

OTLP Exporter should populate InstrumentationScope attributes from OtlpRecordable to the proto buffer. Currently it populates name and version.

Reference:

output_scope_log->mutable_scope()->set_name(input_scope_log.first->GetName());
output_scope_log->mutable_scope()->set_version(input_scope_log.first->GetVersion());

https://github.com/open-telemetry/opentelemetry-proto/blob/main/opentelemetry/proto/common/v1/common.proto#LL71-L77

// InstrumentationScope is a message representing the instrumentation scope information
// such as the fully qualified name and version. 
message InstrumentationScope {
  // An empty instrumentation scope name means the name is unknown.
  string name = 1;
  string version = 2;
  repeated KeyValue attributes = 3;
  uint32 dropped_attributes_count = 4;
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions