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: initialize metrics exporter http gem #1670

Merged

Conversation

xuan-cao-swi
Copy link
Contributor

Description

Follow-up PR for #1641.

  1. Added the Metrics module (nested under module OTLP) to avoid overriding OTLP Exporter version (OpenTelemetry::Exporter::OTLP::VERSION -> OpenTelemetry::Exporter::OTLP::Metrics::VERSION)

Updated script for testing

require 'opentelemetry/sdk'
require 'opentelemetry-metrics-sdk'
require 'opentelemetry-exporter-otlp-metrics'

OpenTelemetry::SDK.configure
console_metric_exporter = OpenTelemetry::Exporter::OTLP::Metrics::MetricsExporter.new # <- change
OpenTelemetry.meter_provider.add_metric_reader(console_metric_exporter)
meter = OpenTelemetry.meter_provider.meter("sample_ruby_meter_name")

meter.create_histogram(...)

xuan-cao-swi and others added 4 commits August 1, 2024 13:59
This removes content related to installing the gem before the metrics
API and SDK gems were released.
Now, there's an extra Metrics:: namespace
Copy link
Contributor

@kaylareopelle kaylareopelle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for opening this! I noticed the README and example also needed some updates, so I opened xuan-cao-swi#4 with some changes there.

Copy link
Member

@mwear mwear left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. We recently added mTLS support to the trace exporter (#1556). Can we make an issue to add this to the metrics exporter in the future?

@xuan-cao-swi
Copy link
Contributor Author

@mwear
Created #1688

@mwear mwear merged commit 2f87a1d into open-telemetry:main Aug 23, 2024
60 checks passed
@xuan-cao-swi xuan-cao-swi deleted the initial-release-on-metrics-exporter branch August 26, 2024 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants