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

Add OpenTelemetry instrumentation #1

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Add OpenTelemetry instrumentation #1

wants to merge 10 commits into from

Conversation

ldhenry
Copy link

@ldhenry ldhenry commented Mar 25, 2024

This PR adds Otel Instrumentation with an OpenTelemetry Collector configured to export traces to LaunchDarkly for Release Guardian.

To get this to work you'll need to do the following:

  1. Create a new Access Token in LD with writer permissions. Save it as LD_ACCESS_TOKEN in your .env.local file
  2. Run the collector in a new terminal with docker compose up
  3. Start the app as usual
  4. Create new LD metrics with event keys outlined in the updated README.md

You can view traces in Jaeger locally at http://localhost:16686. They should be enriched with flag evaluation events (aka logs):

CleanShot 2024-03-25 at 6  58 56

Here is a screenshot of it in action:
CleanShot 2024-03-25 at 7  04 15

@ldhenry ldhenry requested a review from codyde March 25, 2024 19:04
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