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

remove LogRecord.name references #8951

Merged
merged 4 commits into from Mar 29, 2022

Conversation

codeboten
Copy link
Contributor

The name field is deprecated. Removing references to it.

Alex Boten added 2 commits March 29, 2022 09:28
The name field is deprecated. Removing references to it.
@codeboten codeboten requested review from a team, dmitryax and jpkrohling as code owners March 29, 2022 16:32
@project-bot project-bot bot added this to In progress in Collector Mar 29, 2022
Collector automation moved this from In progress to Reviewer approved Mar 29, 2022
@codeboten
Copy link
Contributor Author

Fixing the tests.

Copy link
Member

@tigrannajaryan tigrannajaryan left a comment

Choose a reason for hiding this comment

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

FYI @atoulme

Copy link
Member

@tigrannajaryan tigrannajaryan left a comment

Choose a reason for hiding this comment

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

@dmitryax please also have a look.

logRecord.Body().SetStringVal("mylog")
logRecord.Attributes().InsertString(splunk.DefaultNameLabel, fmt.Sprintf("%d_%d_%d", i, j, k))
Copy link
Member

Choose a reason for hiding this comment

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

I think this is not necessary. There is no need to replace SetName by anything else. We can also delete splunk.DefaultNameLabel.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll address that in a separate PR, I was seeing various tests fail without the distinct attribute.

@codeboten codeboten merged commit 31a4155 into open-telemetry:main Mar 29, 2022
@codeboten codeboten deleted the codeboten/rm-log-name branch March 29, 2022 18:19
foxlegend pushed a commit to foxlegend/opentelemetry-collector-contrib that referenced this pull request Apr 8, 2022
* remove LogRecord.name references

The name field is deprecated. Removing references to it.

* update changelog

* update changelog

* update tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Collector
  
Reviewer approved
Development

Successfully merging this pull request may close these issues.

None yet

6 participants