-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Labels
area:metricsPart of OpenTelemetry MetricsPart of OpenTelemetry MetricsenhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Description
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 oftrue
. If enabled, this instrumentation has to use the globalMeterProvider
.
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/prometheus:
otel.sdk.exporter.metric_data_point.inflight
otel.sdk.exporter.metric_data_point.exported
otel.sdk.exporter.operation.duration
otel.sdk.metric_reader.collection.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:metricsPart of OpenTelemetry MetricsPart of OpenTelemetry MetricsenhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed