Skip to content

fix: reporting event name trimming configuration - #6417

Merged
itsmihir merged 2 commits into
release/1.60.xfrom
fix.reporting-event-name-config
Oct 7, 2025
Merged

itsmihir merged 2 commits into
release/1.60.xfrom
fix.reporting-event-name-config

Conversation

@itsmihir

@itsmihir itsmihir commented Oct 7, 2025 •

Copy link
Copy Markdown
Contributor

Description

Fixing the panic caused due to maxLen != prefixLength + suffixLength for event name
https://rudderlabs.slack.com/archives/C02HCFVJVAR/p1759820729096899?thread_ts=1759820535.227109&cid=C02HCFVJVAR

Linear Ticket

.

Security

  • The code changed/added as part of this pull request won't create any security issues with how the software is being used.

@itsmihir
itsmihir marked this pull request as ready for review October 7, 2025 07:50
err := fmt.Errorf("invalid event name trimming configuration: prefixLength=%d, suffixLength=%d, maxLength=%d. prefixLength and suffixLength must be > 0, prefixLength < maxLength, suffixLength < maxLength, and prefixLength + suffixLength = maxLength", prefixLength, suffixLength, maxLength)
maxLength := prefixLength + suffixLength
if prefixLength <= 0 || suffixLength <= 0 {
err := fmt.Errorf("invalid event name trimming configuration: prefixLength=%d, suffixLength=%d. prefixLength and suffixLength must be > 0", prefixLength, suffixLength)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Can't we just return a generic error and log prefixLength and suffixLength?
If yes we can avoid using reflection (i.e. fmt.Errorf) and go with the non-sugared logger flow:

r.log.Errorn(`[ Reporting ]: Invalid event name trimming configuration`, 
    obskit.Error(err),
    logger.NewIntField("prefixLength", prefixLength),
    logger.NewIntField("suffiexLength", suffixLength),
)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I will create a separate PR for this. I want to avoid pushing any commits and rerunning the action, as that would delay the hotfix.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@fracasula fracasula left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM, left an optional question.

@itsmihir
itsmihir enabled auto-merge (squash) October 7, 2025 08:15
@codecov

codecov Bot commented Oct 7, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.57%. Comparing base (721d186) to head (ad168ac).
⚠️ Report is 1 commits behind head on release/1.60.x.

Additional details and impacted files
@@                Coverage Diff                 @@
##           release/1.60.x    #6417      +/-   ##
==================================================
- Coverage           77.60%   77.57%   -0.04%     
==================================================
  Files                 523      523              
  Lines               70345    70343       -2     
==================================================
- Hits                54589    54566      -23     
- Misses              12915    12936      +21     
  Partials             2841     2841              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@itsmihir
itsmihir merged commit 0b82f6c into release/1.60.x Oct 7, 2025
@itsmihir
itsmihir deleted the fix.reporting-event-name-config branch October 7, 2025 08:41
itsmihir pushed a commit that referenced this pull request Oct 7, 2025
🤖 I have created a release *beep* *boop*
---


##
[1.60.1](v1.60.0...v1.60.1)
(2025-10-07)


### Bug Fixes

* reporting event name trimming configuration
([#6417](#6417))
([0b82f6c](0b82f6c))
* **warehouse:** int to float datatype handling
([#6416](#6416))
([721d186](721d186))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
itsmihir added a commit that referenced this pull request Oct 7, 2025
# Description

Syncing patch release v1.60.1 to main branch

**↓↓ Please review and edit commit overrides before merging ↓↓**

BEGIN_COMMIT_OVERRIDE
fix: keydb consistent hashing (#6403)
fix(warehouse): int to float datatype handling (#6416)
fix: reporting event name trimming configuration (#6417)
END_COMMIT_OVERRIDE

---------

Co-authored-by: Satish Kumar <[email protected]>
Co-authored-by: Francesco Casula <[email protected]>
Co-authored-by: Ranjeet <[email protected]>
Co-authored-by: Mihir Khambhati <[email protected]>
Co-authored-by: Mihir Khambhati <[email protected]>
This was referenced Oct 13, 2025
fracasula pushed a commit that referenced this pull request Oct 13, 2025
# Description

Addressing the comment from the previous PR

#6417 (comment)

## Linear Ticket

.

## Security

- [ ] The code changed/added as part of this pull request won't create
any security issues with how the software is being used.
satishrudderstack pushed a commit that referenced this pull request Oct 14, 2025
🤖 I have created a release *beep* *boop*
---


##
[1.61.0-rc.1](v1.59.0...v1.61.0-rc.1)
(2025-10-13)


### Features

* **processor:** configurable delay option for event processing
([#6376](#6376))
([8321864](8321864))
* **processor:** configurable delay option for event processing
([#6376](#6376))
([14a14b5](14a14b5))
* **router:** jobsdb pickup query batch size adapting to throttling
limit ([#6338](#6338))
([c38b971](c38b971))


### Bug Fixes

* add outgoing metrics to proxy flow
([#6355](#6355))
([23a5c81](23a5c81))
* aws session config region
([#6354](#6354))
([23a5c81](23a5c81))
* dedup gauge
([#6359](#6359))
([a562df4](a562df4))
* improve HTML error extractration and truncation limits
([#6421](#6421))
([9611096](9611096))
* keydb consistent hashing
([#6403](#6403))
([f4a05ca](f4a05ca))
* keydb consistent hashing
([#6403](#6403))
([472e529](472e529))
* keydb grpc config
([#6370](#6370))
([cf04743](cf04743))
* missing keydb client stats
([#6360](#6360))
([c42e5c8](c42e5c8))
* naming collision in redis throttling configuration
([#6365](#6365))
([4f87afb](4f87afb))
* reporting event name trimming configuration
([#6417](#6417))
([f4a05ca](f4a05ca))
* save webhook failures
([#6409](#6409))
([27d3de3](27d3de3))
* set table type to external for glue
([#6386](#6386))
([9017582](9017582))
* ut mirroring tests
([#6341](#6341))
([51dd4f7](51dd4f7))
* **warehouse:** alter namespace col size
([#6379](#6379))
([fbba498](fbba498))
* **warehouse:** int to float datatype handling
([#6416](#6416))
([f4a05ca](f4a05ca))
* **warehouse:** skip extract async job failing test
([#6378](#6378))
([89a4d1e](89a4d1e))
* **warehouse:** skip users table for duplicates check in staging file
([#6422](#6422))
([8315e4e](8315e4e))


### Miscellaneous

* add authentication to reporting client
([#6384](#6384))
([502d2b0](502d2b0))
* add explicit permissions for workflows
([#6381](#6381))
([1d22623](1d22623))
* add readme for async destinaiton module
([#6356](#6356))
([cc80333](cc80333))
* apply security best practices
([#6428](#6428))
([49b1288](49b1288))
* change config key for pickupQueryThrottlingEnabled
([#6427](#6427))
([b82ec25](b82ec25))
* cleanup enableOptimizedConnectionDetailsKey flag from processor
([#6383](#6383))
([770c3fe](770c3fe))
* cleanup unused reporting client code after migrating to commonclient
([#6385](#6385))
([2dd4c49](2dd4c49))
* configurable event name trimming for reporting
([#6394](#6394))
([e757fa8](e757fa8))
* oauth service
([#6387](#6387))
([caba16d](caba16d))
* release 1.60.0
([#6390](#6390))
([c461070](c461070))
* remove deprecated throttling configuration keys
([#6377](#6377))
([8d667b7](8d667b7))
* skip building images for debendabot
([#6425](#6425))
([3cbc422](3cbc422))
* upgrade build-scan-push-action to v1.8.0
([#6350](#6350))
([51dd4f7](51dd4f7))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
satishrudderstack pushed a commit that referenced this pull request Oct 15, 2025
🤖 I have created a release *beep* *boop*
---


##
[1.61.0](v1.59.0...v1.61.0)
(2025-10-15)


### Features

* **processor:** configurable delay option for event processing
([#6376](#6376))
([14a14b5](14a14b5))
* **router:** jobsdb pickup query batch size adapting to throttling
limit ([#6338](#6338))
([c38b971](c38b971))


### Bug Fixes

* add outgoing metrics to proxy flow
([#6355](#6355))
([23a5c81](23a5c81))
* aws session config region
([#6354](#6354))
([23a5c81](23a5c81))
* dedup gauge
([#6359](#6359))
([a562df4](a562df4))
* improve HTML error extractration and truncation limits
([#6421](#6421))
([9611096](9611096))
* keydb consistent hashing
([#6403](#6403))
([f4a05ca](f4a05ca))
* keydb consistent hashing
([#6403](#6403))
([8321864](8321864))
* keydb consistent hashing
([#6403](#6403))
([472e529](472e529))
* keydb grpc config
([#6370](#6370))
([cf04743](cf04743))
* missing keydb client stats
([#6360](#6360))
([c42e5c8](c42e5c8))
* naming collision in redis throttling configuration
([#6365](#6365))
([4f87afb](4f87afb))
* reporting event name trimming configuration
([#6417](#6417))
([f4a05ca](f4a05ca))
* save webhook failures
([#6409](#6409))
([27d3de3](27d3de3))
* set table type to external for glue
([#6386](#6386))
([9017582](9017582))
* ut mirroring tests
([#6341](#6341))
([51dd4f7](51dd4f7))
* **warehouse:** alter namespace col size
([#6379](#6379))
([fbba498](fbba498))
* **warehouse:** int to float datatype handling
([#6416](#6416))
([f4a05ca](f4a05ca))
* **warehouse:** skip extract async job failing test
([#6378](#6378))
([89a4d1e](89a4d1e))
* **warehouse:** skip users table for duplicates check in staging file
([#6422](#6422))
([8315e4e](8315e4e))


### Miscellaneous

* add authentication to reporting client
([#6384](#6384))
([502d2b0](502d2b0))
* add explicit permissions for workflows
([#6381](#6381))
([1d22623](1d22623))
* add readme for async destinaiton module
([#6356](#6356))
([cc80333](cc80333))
* apply security best practices
([#6428](#6428))
([49b1288](49b1288))
* change config key for pickupQueryThrottlingEnabled
([#6427](#6427))
([b82ec25](b82ec25))
* change release to 1.61.0
([#6437](#6437))
([b89d17a](b89d17a))
* cleanup enableOptimizedConnectionDetailsKey flag from processor
([#6383](#6383))
([770c3fe](770c3fe))
* cleanup unused reporting client code after migrating to commonclient
([#6385](#6385))
([2dd4c49](2dd4c49))
* configurable event name trimming for reporting
([#6394](#6394))
([e757fa8](e757fa8))
* oauth service
([#6387](#6387))
([caba16d](caba16d))
* release 1.60.0
([#6390](#6390))
([c461070](c461070))
* remove deprecated throttling configuration keys
([#6377](#6377))
([8d667b7](8d667b7))
* skip building images for debendabot
([#6425](#6425))
([3cbc422](3cbc422))
* upgrade build-scan-push-action to v1.8.0
([#6350](#6350))
([51dd4f7](51dd4f7))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants