feat: enhance telemetry capabilities #5979
Merged
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.
Add
withCorrelation
method to sdk-backend-spi that enables attaching custom metadata to backend requests.In the sdk-backend-tiger implementation,
it's provided as an
x-gdc-correlation
header,with stringified correlation metadata as its value.
This enhancement enables more detailed telemetry tracking, allowing inclusion of contextual information in requests such as visualization IDs, dashboard IDs, and more.
Introduce a new
CorrelationContext
React context that provides a convenient way to set and retrievebackend correlation metadata.
Integrate with Dashboard - enhance all requests with dashboardId, and further enrich visualization-related requests with widgetId and visualizationId.
risk: low
JIRA: STL-1062
Important
Please, don't forget to run
rush change
for the commits that introduce new features or significant changes 🙏 This information is used to generate the change log.Run extended test by pull request comment
Commands can be triggered by posting a comment with specific text on the pull request. It is possible to trigger multiple commands simultaneously.
Explanation
--backstop
The command to run screen tests.--integrated
The command to run integrated tests against the live backend.--isolated
The command to run isolated tests against recordings.--record
The command to create new recordings for isolated tests.--filter
(Optional) A comma-separated list of test files to run. This parameter is valid only for the--integrated
,--isolated
, and--record
commands.Examples