Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[processor/transform] Fix log accessor bugs #10903

Merged
merged 11 commits into from
Jun 21, 2022

Conversation

TylerHelmuth
Copy link
Member

Description:
Some accessors for logs were not returning proper data types, breaking their usage in conditions. This PR fixes those bugs.

Link to tracking Issue:
#10350

Testing:
Updated/Added unit tests

@TylerHelmuth TylerHelmuth requested a review from a team June 10, 2022 21:21
@TylerHelmuth
Copy link
Member Author

/cc @anuraaga

@@ -299,7 +299,7 @@ func accessDroppedAttributesCount() pathGetSetter {
func accessFlags() pathGetSetter {
return pathGetSetter{
getter: func(ctx common.TransformContext) interface{} {
return ctx.GetItem().(plog.LogRecord).Flags()
return int64(ctx.GetItem().(plog.LogRecord).Flags())
Copy link
Member

Choose a reason for hiding this comment

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

Flags is unit32?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes

@TylerHelmuth
Copy link
Member Author

TylerHelmuth commented Jun 16, 2022

@open-telemetry/collector-contrib-approvers please review

CHANGELOG.md Outdated Show resolved Hide resolved
Co-authored-by: Dmitrii Anoshin <[email protected]>
@TylerHelmuth TylerHelmuth added the ready to merge Code review completed; ready to merge by maintainers label Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Code review completed; ready to merge by maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants