Flagsmith / Flagsmith/flagsmith-common

OTel: Sentry

Open
#183 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2
Forks
4
Avg merge
2d 9h
Merged PRs (30d)
10

Description

1. Move over Sentry SDK initialisation from flagsmith/flagsmith to here.
2. Port https://github.com/Flagsmith/flagsmith/blob/main/api/integrations/sentry/samplers.py to a `opentelemetry.sdk.trace.sampling.Sampler` subclass, and maintain compatibility with existing Sentry tracing settings `DEFAULT_SENTRY_TRACE_SAMPLE_RATE`, `DASHBOARD_ENDPOINTS_SENTRY_TRACE_SAMPLE_RATE`, `FORCE_SENTRY_TRACE_KEY`. Introduce non-sentry aliases for these settings (e.g. `OTEL_FORCE_TRACE_KEY`). Add the Sampler to OTel tracing setup.
4. Initialise Sentry SDK with `integrations=[OTLPIntegration()]`.
5. Make sure Sentry tracing, breadcrumbs, and error capture work.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.