Repository navigation
fix: avoid redundant transformer statTags unmarshalling (#7182) - #1
Merged
Merged
Conversation
# 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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Eliminate redundant JSON unmarshalling for
integration.failure_detailedmetrics on transformer hot paths.Summary
integration.failure_detailedmetric emission.statTagshelper and keep the proxy-only single-object raw helper with documentation.statTagshandling.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/transformergo test -count=1 /workspace/rudder-server/processor/integrations /workspace/rudder-server/router/transformerrg "CollectIntgTransformErrorStats|CollectDestErrorStats|CollectIntegrationFailureDetailedStats|integration.failure_detailed" processor routerconfirmedCollectIntgTransformErrorStatshas no remaining usages andCollectDestErrorStatsis only used by the documented proxy path.Linear Ticket
PIPE-3182
Security
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