Skip to content

Conversation

@AlejandroFrndz
Copy link
Contributor

@AlejandroFrndz AlejandroFrndz commented Dec 1, 2025

Summary

Closes #244133

This PR enhances telemetry around the processing phase for streams. A new data-stream-type attribute 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:

  • Create new condition/processor
    • Accept
    • Cancel
  • Edit existing condition/processor
    • Accept
    • Cancel
    • Delete
  • From the context menu of an existing condition
    • Edit
    • Delete
  • From the context menu of an existing processor
    • Edit
    • Delete
    • Duplicate
  • Save all pending changes
  • Reject all pending changes

All the click targets for these events above should now include a data-stream-type with a value of wired or classic, depending on the type of stream you're using of course.

@AlejandroFrndz AlejandroFrndz self-assigned this Dec 1, 2025
@AlejandroFrndz AlejandroFrndz force-pushed the 244133-add-stream-type-to-processing-telemetry-events branch 2 times, most recently from 84900b0 to 9c652b7 Compare December 1, 2025 14:30
@AlejandroFrndz AlejandroFrndz added release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting Team:obs-onboarding Observability Onboarding Team Feature:Streams This is the label for the Streams Project ci:beta-faster-pr-build Uses an alternative PR build pipeline with speed optimizations labels Dec 1, 2025
@AlejandroFrndz AlejandroFrndz marked this pull request as ready for review December 1, 2025 16:16
@AlejandroFrndz AlejandroFrndz requested a review from a team as a code owner December 1, 2025 16:16
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-onboarding-team (Team:obs-onboarding)

@AlejandroFrndz AlejandroFrndz force-pushed the 244133-add-stream-type-to-processing-telemetry-events branch from fcb9d99 to 4cb6fa0 Compare December 3, 2025 08:38
onConfirm,
onViewCodeClick,
}: ManagementBottomBarProps) {
const streamType = useStreamEnrichmentSelector((snapshot) => selectStreamType(snapshot.context));
Copy link
Contributor

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.

Copy link
Contributor Author

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.
@AlejandroFrndz AlejandroFrndz force-pushed the 244133-add-stream-type-to-processing-telemetry-events branch from 4cb6fa0 to 77ededd Compare December 3, 2025 17:00
@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
streamsApp 1.1MB 1.1MB +725.0B

History

cc @AlejandroFrndz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting ci:beta-faster-pr-build Uses an alternative PR build pipeline with speed optimizations Feature:Streams This is the label for the Streams Project release_note:skip Skip the PR/issue when compiling release notes Team:obs-onboarding Observability Onboarding Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Streams] Add stream type to click telemetry events in Processing

3 participants