Skip to content

Conversation

@jtuglu1
Copy link
Contributor

@jtuglu1 jtuglu1 commented Dec 18, 2025

Description

I've found it hard to build observability on logically-dropped events (either due to transform, null, or temporal conditions).
This adds:

  • Better logging in task logs indicating the breakdown of thrown away events by reason.
  • A reason dimension to the ingest/events/thrownAway metric for aggregating on thrown away reason.
  • A thrownAwayByReason map to row statistics task API response payload, so future consumers can make use of it should they need to.
  • Better interface for row filters, making it easy to adding more filtering reasons in the future.

Release note

Add reason dimension to ingest/events/thrownAway metric. This allows for increased observability on why certain events are being logically excluded from ingest.


This PR has:

  • been self-reviewed.
  • added documentation for new or modified features or behaviors.
  • a release note entry in the PR description.
  • added Javadocs for most classes and all non-trivial methods. Linked related entities via Javadoc links.
  • added or updated version, license, or notice information in licenses.yaml
  • added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
  • added unit tests or modified existing tests to cover new code paths, ensuring the threshold for code coverage is met.
  • added integration tests.
  • been tested in a test Druid cluster.

@jtuglu1 jtuglu1 force-pushed the ingest-dropped-event-metric-reason-dimension branch from 0a7d1ad to 76bbd91 Compare December 18, 2025 20:13
@jtuglu1 jtuglu1 added this to the 36.0.0 milestone Dec 18, 2025
@jtuglu1 jtuglu1 force-pushed the ingest-dropped-event-metric-reason-dimension branch from 76bbd91 to 36e0c72 Compare December 18, 2025 20:23
@jtuglu1 jtuglu1 changed the title Add reason dimension to ingest/events/thrownAway metric Add drop reason dimension to ingest/events/thrownAway metric Dec 18, 2025
@jtuglu1 jtuglu1 force-pushed the ingest-dropped-event-metric-reason-dimension branch 3 times, most recently from c9c7e0d to 0ed4046 Compare December 19, 2025 00:28
@jtuglu1 jtuglu1 marked this pull request as ready for review December 19, 2025 02:36
Copy link
Contributor

@kfaraz kfaraz left a comment

Choose a reason for hiding this comment

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

Looks good, left some minor suggestions.

@jtuglu1 jtuglu1 force-pushed the ingest-dropped-event-metric-reason-dimension branch from 9013d02 to 5ca36a7 Compare December 20, 2025 01:46
@jtuglu1 jtuglu1 force-pushed the ingest-dropped-event-metric-reason-dimension branch 3 times, most recently from 9d8b12a to 1704dda Compare December 21, 2025 19:44
@jtuglu1 jtuglu1 force-pushed the ingest-dropped-event-metric-reason-dimension branch 5 times, most recently from 3a435d8 to c8f8981 Compare December 22, 2025 07:06
Copy link
Contributor

@kfaraz kfaraz left a comment

Choose a reason for hiding this comment

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

Left some final suggestions.

Copy link
Contributor

@abhishekrb19 abhishekrb19 left a comment

Choose a reason for hiding this comment

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

LGTM, left a few minor comments - thanks!

@jtuglu1 jtuglu1 force-pushed the ingest-dropped-event-metric-reason-dimension branch from 78aaeae to 9a2d432 Compare December 23, 2025 02:54
@jtuglu1 jtuglu1 force-pushed the ingest-dropped-event-metric-reason-dimension branch 4 times, most recently from e2a2eea to e489214 Compare December 23, 2025 15:07
@jtuglu1 jtuglu1 force-pushed the ingest-dropped-event-metric-reason-dimension branch from e489214 to 62440f3 Compare December 23, 2025 15:12
@jtuglu1 jtuglu1 merged commit c4b5ea6 into apache:master Dec 23, 2025
55 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants