open-telemetry / open-telemetry/opentelemetry-ruby

[Feature Request] Add Official Metrics Support to OTLP Exporters

Open
#2,162 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

metrics stale
Dominant language
Ruby
Stars
606
Forks
301
Avg merge
3d 19h
Merged PRs (30d)
42

Description

Add official OpenTelemetry Metrics API support to OTLP exporters to monitor export performance and reliability.

Metrics Needed

1. Message Sizes
  • otel.otlp_exporter.message.uncompressed_size (bytes)
  • otel.otlp_exporter.message.compressed_size (bytes, when compression enabled)
2. Request Duration
  • otel.otlp_exporter.request.duration (milliseconds)
    • Attribute: http.status_code
3. Export Failures
  • otel.otlp_exporter.export.failure (counter)
    • Attribute: error.type (e.g., "timeout", "http_503", "socket_error")

Requirements

  • Use official OpenTelemetry Metrics SDK (not the un-spec'd MetricsReporter)
  • Make metrics optional/configurable
  • Avoid circular dependencies in self-instrumentation
  • Apply consistently across HTTP and gRPC exporters

Benefits

  • Monitor export pipeline health in production
  • Troubleshoot performance issues and failures
  • Optimize compression and batch configurations

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the HTTP and gRPC OTLP exporter implementations and the official OpenTelemetry Metrics SDK integration points. Define how optional metrics avoid circular dependencies, then apply the message-size, request-duration, and export-failure measurements consistently to both exporters. Done means configurable metrics with the specified attributes and units, without relying on MetricsReporter.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
backend, observability
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.