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

[receiver/otlpjsonfile] append token.Attributes to scoped attribute of the signal #36715

Merged
merged 10 commits into from
Jan 24, 2025

Conversation

khushijain21
Copy link
Contributor

Description

It loops through token.Attributes and appends it to the scoped attribute of the signal

Link to tracking issue

Fixes #36641

Testing

Added UT

Documentation

@khushijain21 khushijain21 requested review from djaglowski, atoulme and a team as code owners December 8, 2024 10:40
@khushijain21 khushijain21 changed the title [receiver/otlpjsonfile] add token.Attributes to final signal [receiver/otlpjsonfile] append token.Attributes to scoped attribute of the signal Dec 8, 2024
@VihasMakwana
Copy link
Contributor

@khushijain21 please an entry to changelog. This is a user-facing bug fix.

component: otlpjsonfilereceiver

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: Parse token.attributes and append it to the log record
Copy link
Contributor

Choose a reason for hiding this comment

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

What's token.attributes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

I know :) Can you please make it more explicit for folks reading the changelog who might not know what that is?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh okay ;)

@atoulme
Copy link
Contributor

atoulme commented Dec 17, 2024

Please resolve the conflict, fix the changelog message, and we'll be good to go.

@khushijain21 khushijain21 requested a review from atoulme January 1, 2025 08:46
Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Jan 16, 2025
@khushijain21
Copy link
Contributor Author

@atoulme can you take look?

@github-actions github-actions bot removed the Stale label Jan 22, 2025
@atoulme atoulme added the ready to merge Code review completed; ready to merge by maintainers label Jan 24, 2025
@songy23 songy23 merged commit bb6e0ef into open-telemetry:main Jan 24, 2025
172 checks passed
@github-actions github-actions bot added this to the next release milestone Jan 24, 2025
chengchuanpeng pushed a commit to chengchuanpeng/opentelemetry-collector-contrib that referenced this pull request Jan 26, 2025
…f the signal (open-telemetry#36715)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
It loops through token.Attributes and appends it to the scoped attribute
of the signal

<!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes open-telemetry#36641

<!--Describe what testing was performed and which tests were added.-->
#### Testing
Added UT

<!--Describe the documentation added.-->
#### Documentation

<!--Please delete paragraphs that you did not use before submitting.-->
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 receiver/otlpjsonfile
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[receiver/otlpjsonfile] File name not included as part of attributes
5 participants