Skip to content

fix: avoid redundant transformer statTags unmarshalling (#7182) - #1

Merged
sivaprasath550 merged 1 commit into
sivaprasath550:masterfrom
rudderlabs:master
Jul 17, 2026
Merged

sivaprasath550 merged 1 commit into
sivaprasath550:masterfrom
rudderlabs:master

Conversation

@sivaprasath550

Copy link
Copy Markdown
Owner

Description

Eliminate redundant JSON unmarshalling for
integration.failure_detailed metrics on transformer hot paths.

Summary

  • Add a parsed-tag helper for integration.failure_detailed metric emission.
  • Emit transformer failure detail metrics from already unmarshalled processor/router response structs.
  • Remove the raw array statTags helper and keep the proxy-only single-object raw helper with documentation.
  • Add tests for helper emission and router batch/routerTransform statTags handling.

Validation

  • go test /workspace/rudder-server/processor/integrations /workspace/rudder-server/processor/internal/transformer/destination_transformer /workspace/rudder-server/processor/internal/transformer/user_transformer /workspace/rudder-server/processor/internal/transformer/trackingplan_validation /workspace/rudder-server/router/transformer
  • go test -count=1 /workspace/rudder-server/processor/integrations /workspace/rudder-server/router/transformer
  • rg "CollectIntgTransformErrorStats|CollectDestErrorStats|CollectIntegrationFailureDetailedStats|integration.failure_detailed" processor router confirmed CollectIntgTransformErrorStats has no remaining usages and CollectDestErrorStats is only used by the documented proxy path.

Linear Ticket

PIPE-3182

Security

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

Description

< Replace with adequate description for this PR as per Pull Request document >

Linear Ticket

< Replace with Linear Link ( create or search linear ticket) or >

Security

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

# Description

Eliminate redundant JSON unmarshalling for
`integration.failure_detailed` metrics on transformer hot paths.

## Summary
- Add a parsed-tag helper for `integration.failure_detailed` metric
emission.
- Emit transformer failure detail metrics from already unmarshalled
processor/router response structs.
- Remove the raw array `statTags` helper and keep the proxy-only
single-object raw helper with documentation.
- Add tests for helper emission and router batch/routerTransform
`statTags` handling.

## Validation
- `go test /workspace/rudder-server/processor/integrations
/workspace/rudder-server/processor/internal/transformer/destination_transformer
/workspace/rudder-server/processor/internal/transformer/user_transformer
/workspace/rudder-server/processor/internal/transformer/trackingplan_validation
/workspace/rudder-server/router/transformer`
- `go test -count=1 /workspace/rudder-server/processor/integrations
/workspace/rudder-server/router/transformer`
- `rg
"CollectIntgTransformErrorStats|CollectDestErrorStats|CollectIntegrationFailureDetailedStats|integration.failure_detailed"
processor router` confirmed `CollectIntgTransformErrorStats` has no
remaining usages and `CollectDestErrorStats` is only used by the
documented proxy path.

## Linear Ticket

PIPE-3182

## Security

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

---------

Co-authored-by: tech-infra-rudderstack <[email protected]>
Co-authored-by: Akash Chetty <[email protected]>
@sivaprasath550
sivaprasath550 merged commit 0d981d7 into sivaprasath550:master Jul 17, 2026
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.

1 participant