Document PHP feature flag telemetry#37093
Draft
leoromanovsky wants to merge 1 commit into
Draft
Conversation
Contributor
Preview links (active after the
|
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.
Motivation
The base PHP Feature Flags docs add setup and evaluation flows. Exposures and flag evaluation metrics are not ready to publish yet because the PHP telemetry path is currently blocked by a Rust version mismatch. This stacked PR queues the documentation now so it can land when that blocker is resolved, while still giving PHP customers the same guidance as the other server SDK docs for confirming flag evaluation counts and experiment exposures.
Changes
This PR extends the PHP server SDK page with
DD_METRICS_OTEL_ENABLED=true, notes that non-flat context attributes affect targeting and exposure reporting, and adds troubleshooting entries forfeature_flag.evaluationsand experiment exposures. It keeps the minimum PHP tracer prerequisite from the base docs asdatadog/dd-trace1.20.0 or later and uses the same terminology as the shared server SDK docs.Decisions
This is stacked on #37089 so the first PR can land the core PHP setup separately from telemetry docs. The troubleshooting language follows the Java server SDK structure: flag evaluation metrics are described separately from experiment exposures, and exposures are scoped to flags associated with an experiment rather than presented as standard flag behavior.
Validation
git diff --check.DD_METRICS_OTEL_ENABLED,feature_flag.evaluations, and experiment exposure troubleshooting in the stacked diff.