feat: ruby observability plugin#360
Draft
ccschmitz-launchdarkly wants to merge 7 commits intomainfrom
Draft
Conversation
|
|
||
| # 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
| 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
| 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
| # 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an observability plugin for the Ruby SDK. Also updates all the E2E apps to use the Ruby SDK rather than the old
HighlightSDK.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