Skip to content
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

Merged
merged 10 commits into from
Nov 18, 2024

Conversation

kaylareopelle
Copy link
Contributor

@kaylareopelle kaylareopelle commented Dec 5, 2023

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:

  • otlp (default)
  • console
  • in-memory (pull exporter)
  • none

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

@kaylareopelle kaylareopelle changed the title WIP - Update metrics configuration patch WIP - feat: Update metrics configuration patch Dec 5, 2023
Copy link
Contributor

github-actions bot commented Mar 1, 2024

👋 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 keep label to hold stale off permanently, or do nothing. If you do nothing this pull request will be closed eventually by the stale bot

@github-actions github-actions bot added the stale label Mar 1, 2024
@kaylareopelle
Copy link
Contributor Author

Blocked by #1551

@github-actions github-actions bot removed the stale label Mar 6, 2024
@kaylareopelle kaylareopelle changed the title WIP - feat: Update metrics configuration patch feat: Update metrics configuration patch Apr 3, 2024
Copy link
Contributor

github-actions bot commented May 5, 2024

👋 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 keep label to hold stale off permanently, or do nothing. If you do nothing this pull request will be closed eventually by the stale bot

…variable

The environment variable has options for:
* console (default)
* otlp
* in-memory
* none

Like the Traces exporter, more than one exporter can be configured
@kaylareopelle kaylareopelle force-pushed the update-configuration-patch branch from f0c7663 to 8ec788b Compare July 10, 2024 21:36
@kaylareopelle kaylareopelle marked this pull request as ready for review July 10, 2024 22:24
@kaylareopelle kaylareopelle self-assigned this Jul 11, 2024
* 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
@mwear mwear merged commit d60e3a7 into open-telemetry:main Nov 18, 2024
63 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Status: Placeholder
Development

Successfully merging this pull request may close these issues.

2 participants