Skip to content

feat: introduce transformationId label - #47

Merged
lvrach merged 1 commit into
mainfrom
feat.label-transformation-id
Feb 17, 2025
Merged

lvrach merged 1 commit into
mainfrom
feat.label-transformation-id

Conversation

@lvrach

@lvrach lvrach commented Feb 14, 2025

Copy link
Copy Markdown
Member

transformationId is used to identify the user transformation applied to the destination.

https://linear.app/rudderstack/issue/PIPE-1911/update-go-and-ci-on-rudder-observability-kit

resolves PIPE-1911

@lvrach
lvrach requested a review from koladilip as a code owner February 14, 2025 18:00
@lvrach
lvrach requested review from atzoum and fracasula February 14, 2025 18:00
Comment thread go/labels/common.go
SourceID = func(v string) log.Field { return log.NewStringField("sourceId", v) }
SourceType = func(v string) log.Field { return log.NewStringField("sourceType", v) }
WorkspaceID = func(v string) log.Field { return log.NewStringField("workspaceId", v) }
TransformationID = func(v string) log.Field { return log.NewStringField("transformationId", v) }

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

does this change everytime the transformation's body change?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is a side effect of running the linter. It wants to align all = horizontally. Given the length of TransformationID it caused all the lines to change.

Alternatively, we can replace the var group with individual vars, I don't think it is worth it. It is not going to happen often

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The actual question is whether the TransformationID value will change every time the customer modifies the transformation script in the ui

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The transformationID remains the same but we also have a transformationVersionID which changes everytime modification happens

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

thanks, so TransformationVersionID is the one with the highest cardinality

@ktgowtham
ktgowtham self-requested a review February 17, 2025 11:03
@lvrach
lvrach merged commit a183d02 into main Feb 17, 2025
@lvrach
lvrach deleted the feat.label-transformation-id branch February 17, 2025 18:06
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