Skip to content

Logs SDK observability - otlploggrpc exporter metrics #7019

@pellared

Description

@pellared

Common requirement as this is an experimental feature:

  • To enable this feature the user has to set the OTEL_GO_X_SELF_OBSERVABILITY environment variable to the case-insensitive string value of true. If enabled, this instrumentation has to use the global MeterProvider.

Implement following self-observability metrics from https://github.com/open-telemetry/semantic-conventions/blob/v1.36.0/docs/otel/sdk-metrics.md for https://pkg.go.dev/go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc:

  • otel.sdk.exporter.log.inflight
  • otel.sdk.exporter.log.exported
  • otel.sdk.exporter.operation.duration

Describe in the documentation the new feature in GoDoc. Here is an example of how metrics can be documented: https://github.com/open-telemetry/opentelemetry-go-contrib/blob/main/instrumentation/runtime/doc.go

Other SDK observability PR for reference: #7027
Prototype for other SDK metrics for reference: #6393

Metadata

Metadata

Assignees

Labels

area:logsPart of OpenTelemetry logsenhancementNew feature or requesthelp wantedExtra attention is neededpkg:exporter:otlpRelated to the OTLP exporter package

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions