-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[Streams] Add stream type to click telemetry events in Processing #244748
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
base: main
Are you sure you want to change the base?
[Streams] Add stream type to click telemetry events in Processing #244748
Conversation
84900b0 to
9c652b7
Compare
|
Pinging @elastic/obs-onboarding-team (Team:obs-onboarding) |
fcb9d99 to
4cb6fa0
Compare
| onConfirm, | ||
| onViewCodeClick, | ||
| }: ManagementBottomBarProps) { | ||
| const streamType = useStreamEnrichmentSelector((snapshot) => selectStreamType(snapshot.context)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes the bar less re-usable in different pages, as it's now bound to the processing page. You should probably pass the stream type as an optional property instead of directly accessing the context for processing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Crap I didn't realise that was shared across processing and routing, fixing it now
Remove the exported StreamType and its import usage in the selector, letting the selector's return type be inferred instead of explicitly annotated. Cleans up an unused type, eliminates related TypeScript/linter warnings, and simplifies the typings.
Moves responsibility for deriving the stream type out of the bottom-bar component and into the stream detail enrichment parent. The bottom bar now receives streamType as a prop and no longer uses the enrichment selector/hook, while the parent selects the streamType and passes it down. This decouples the presentational bottom bar from state-machine details, improves reusability and testability, and removes unused imports.
4cb6fa0 to
77ededd
Compare
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Async chunks
History
|
Summary
Closes #244133
This PR enhances telemetry around the processing phase for streams. A new
data-stream-typeattribute has been added to all click targets involved in the process of adding, configuring and saving processing steps (conditions and processors) This enhances the telemetry events, allowing analysts to distinguish between wired and classic streams when analysing the usage of processing features.Testing
Walk through the flow to configure processing for a stream, including:
All the click targets for these events above should now include a
data-stream-typewith a value ofwiredorclassic, depending on the type of stream you're using of course.