-
Notifications
You must be signed in to change notification settings - Fork 247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Update metrics configuration patch #1548
feat: Update metrics configuration patch #1548
Conversation
👋 This pull request has been marked as stale because it has been open with no activity. You can: comment on the issue or remove the stale label to hold stale off for a while, add the |
Blocked by #1551 |
👋 This pull request has been marked as stale because it has been open with no activity. You can: comment on the issue or remove the stale label to hold stale off for a while, add the |
86a9337
to
f0c7663
Compare
…variable The environment variable has options for: * console (default) * otlp * in-memory * none Like the Traces exporter, more than one exporter can be configured
f0c7663
to
8ec788b
Compare
metrics_sdk/lib/opentelemetry/sdk/metrics/configuration_patch.rb
Outdated
Show resolved
Hide resolved
* Default option is now OTLP * In-Memory option removed, it's not in the spec * PeriodicMetricReader added for both Console and OTLP exporters * Add the metrics OTLP exporter gem to the test gem group
This PR updates the metrics configuration patch to match the functionality for traces in the
OpenTelemetry::SDK::Configurator
.Once this PR is merged, the metric exporter can be automatically configured using the
OTLP_METRICS_EXPORTER
environment variable.The environment variable has options for:
Like the Traces exporter, more than one exporter can be configured.
This draws a lot from the structure in: https://github.com/open-telemetry/opentelemetry-ruby/blob/main/sdk/lib/opentelemetry/sdk/configurator.rb
It intends to follow the specification: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md?plain=1#L256