Skip to content

chore(otlp): add organization-scoped feature flag for OTLP trace endpoint - #99155

Merged
mjq merged 2 commits into
masterfrom
mjq/create-org-otlp-trace-flag
Sep 10, 2025
Merged

mjq merged 2 commits into
masterfrom
mjq/create-org-otlp-trace-flag

Conversation

@mjq

@mjq mjq commented Sep 9, 2025 •

Copy link
Copy Markdown
Member

In order to support onboarding LA customers as well as for future graduated rollouts, it would be more appropriate for the OTLP trace endpoint feature flag to be an organization-scoped flag instead of the current project-scoped flag.

This PR adds a new organizations:relay-otlp-traces-endpoint flag and exposes it via project config to Relay. (The new name is more accurate, and helps disambiguate it from the similar feature flag for the OTLP logs endpoint). It will be followed up by a change in Relay to read this flag instead of the previous projects:relay-otel-endpoint flag. Then we can remove the project-scoped flag.

See OPE-66.

…oint

In order to support onboarding LA customers as well as for future graduated
rollouts, it would be more appropriate for the OTLP trace endpoint feature flag
to be an organization-scoped flag instead of the current project-scoped flag.

This PR adds a new `organizations:relay-otel-endpoint` flag and exposes it via
project config to Relay. It will be followed up by a change in Relay to read
this flag instead of the previous `projects:relay-otel-endpoint` flag. Then we
can remove the project-scoped flag.
@mjq
mjq requested a review from gggritso September 9, 2025 20:44
@mjq
mjq requested a review from a team as a code owner September 9, 2025 20:44
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Sep 9, 2025
# Enables the playstation ingestion in relay
manager.add("organizations:relay-playstation-ingestion", OrganizationFeature, FeatureHandlerStrategy.FLAGPOLE, api_expose=False)
# Enables OTLP Trace ingestion in Relay for an entire org (see also `projects:relay-otel-endpoint`)
manager.add("organizations:relay-otlp-traces-endpoint", OrganizationFeature, FeatureHandlerStrategy.FLAGPOLE, api_expose=True)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be api_expose=False like the rest of the relay features?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jjbayer We use it in a couple places on the frontend (e.g.

useOTelFriendlyUI() && project.features.includes('relay-otel-endpoint');
) - for that to keep working as an organization flag I think it needs api_expose, but I could be mistaken! (It didn't need it as a project flag, seemingly).

@mjq
mjq merged commit f0940ea into master Sep 10, 2025
@mjq
mjq deleted the mjq/create-org-otlp-trace-flag branch September 10, 2025 15:00
github-merge-queue Bot pushed a commit to getsentry/relay that referenced this pull request Sep 15, 2025
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 26, 2025

This branch was successfully deployed

1 active deployment
Preview — e6f611b6 Deployed Sep 9, 2025 by vercel[bot]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants