Skip to content

Conversation

@BrianHawley
Copy link
Contributor

This makes it so the logs and metrics will work when you require like

require 'opentelemetry/sdk/logs'
require 'opentelemetry/sdk/metrics'

Without requiring 'opentelemetry-logs-api' or 'opentelemetry-logs-metrics' earlier.

The opentelemetry-exporter-otlp-logs gem works around this, but I'm leaving that workaround there for now, so it will work with old versions of the opentelemetry-logs-sdk gem that are still locked.

[Fixes #1955]

@BrianHawley BrianHawley changed the title Move the logs-sdk and metrics-sdk requires fix: Move the logs-sdk and metrics-sdk requires Nov 8, 2025
This makes it so the logs and metrics will work when you require like
```ruby
require 'opentelemetry/sdk/logs'
require 'opentelemetry/sdk/metrics'
```
Without getting 'opentelemetry-logs-api' or 'opentelemetry-logs-metrics'
earlier.

The opentelemetry-exporter-otlp-logs gem works around this, but I'm
leaving that workaround there for now, so it will work with old versions
of the opentelemetry-logs-sdk gem that are still locked.

[Fixes open-telemetry#1955]
@BrianHawley
Copy link
Contributor Author

Looks like truffleruby is failing for unrelated reasons. I may look into that later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Requires in the wrong place in opentelemetry-logs-sdk and opentelemetry-metrics-sdk

1 participant