Skip to content

feat: ruby observability plugin#360

Draft
ccschmitz-launchdarkly wants to merge 7 commits intomainfrom
O11Y-1032-ruby-observability-plugin
Draft

feat: ruby observability plugin#360
ccschmitz-launchdarkly wants to merge 7 commits intomainfrom
O11Y-1032-ruby-observability-plugin

Conversation

@ccschmitz-launchdarkly
Copy link
Contributor

Summary

Adds an observability plugin for the Ruby SDK. Also updates all the E2E apps to use the Ruby SDK rather than the old Highlight SDK.

How did you test this change?

Ran locally with a key from a test project. You can view traces and errors here: https://app.launchdarkly.com/projects/chris-test-project/traces?startDate=2026-02-04T20%3A06%3A00.000Z&endDate=2026-02-04T20%3A26%3A00.000Z&page=1&env=test&selected-env=test

Are there any deployment considerations?

N/A


# Create observability plugin (SDK key and environment automatically inferred)
observability_plugin = LaunchDarklyObservability::Plugin.new(
otlp_endpoint: ENV.fetch('OTEL_EXPORTER_OTLP_ENDPOINT', 'http://localhost:4318'),

Check notice

Code scanning / devskim

Accessing localhost could indicate debug code, or could hinder scaling. Note

Do not leave debug code in production
end
# Initialize LaunchDarkly Observability
observability_plugin = LaunchDarklyObservability::Plugin.new(
otlp_endpoint: ENV.fetch('OTEL_EXPORTER_OTLP_ENDPOINT', 'http://localhost:4318'),

Check notice

Code scanning / devskim

Accessing localhost could indicate debug code, or could hinder scaling. Note

Do not leave debug code in production
config.use_all(
'OpenTelemetry::Instrumentation::Rails' => { enable_recognize_route: true },
'OpenTelemetry::Instrumentation::ActiveRecord' => { db_statement: :include },
'OpenTelemetry::Instrumentation::Net::HTTP' => { untraced_hosts: [] },

Check notice

Code scanning / devskim

Inbound HTTP Note

Notice: Outbound HTTP Connection
# Create plugin with test configuration
@plugin = LaunchDarklyObservability::Plugin.new(
project_id: @project_id,
otlp_endpoint: 'http://localhost:4318',

Check notice

Code scanning / devskim

Accessing localhost could indicate debug code, or could hinder scaling. Note test

Do not leave debug code in production
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.

1 participant