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

Eliminate usage of removed OTLP LogRecord.Name field #61

Merged

Conversation

tigrannajaryan
Copy link
Contributor

LogRecord.Name is no longer part of the OTLP data model and was deprecated
open-telemetry/opentelemetry-proto#357 and
deleted open-telemetry/opentelemetry-proto#373 from OTLP.

It is now deprecated in the Collector codebase too:
https://github.com/open-telemetry/opentelemetry-collector/blob/d2e5601b7045a3021009729ce539cb88373f3216/model/internal/pdata/generated_log.go#L644

We are planning to delete it from the Collector codebase, but first we need
to remove the references from this codebase since it is a Collector dependency.

Testing done: cd otel2influx && go test ./...

LogRecord.Name is no longer part of the OTLP data model and was deprecated
open-telemetry/opentelemetry-proto#357 and
deleted open-telemetry/opentelemetry-proto#373 from OTLP.

It is now deprecated in the Collector codebase too:
https://github.com/open-telemetry/opentelemetry-collector/blob/d2e5601b7045a3021009729ce539cb88373f3216/model/internal/pdata/generated_log.go#L644

We are planning to delete it from the Collector codebase, but first we need
to remove the references from this codebase since it is a Collector dependency.

Testing done: cd otel2influx && go test ./...
@tigrannajaryan
Copy link
Contributor Author

@jacobmarble can you please take a look. I think I cleaned it from the right places. Thank you.

Copy link
Member

@jacobmarble jacobmarble left a comment

Choose a reason for hiding this comment

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

Thank you Tigran

@jacobmarble jacobmarble marked this pull request as ready for review April 1, 2022 19:22
@jacobmarble jacobmarble requested a review from a team as a code owner April 1, 2022 19:22
@jacobmarble
Copy link
Member

I'll take a look at the falling CI tests later, unless you beat me to it. ooo today.

@jacobmarble jacobmarble mentioned this pull request Apr 1, 2022
@jacobmarble jacobmarble merged commit bb705b3 into influxdata:main Apr 1, 2022
@tigrannajaryan tigrannajaryan deleted the feature/tigran/remove-log-name branch April 4, 2022 13:57
@tigrannajaryan
Copy link
Contributor Author

Thanks for merging @jacobmarble

Please ping me when you make a new release here. I will update Otel Collector to use the new version.

@domodwyer
Copy link
Member

Hey @tigrannajaryan,

Just so you know, @jacobmarble is on holiday so might take a little longer to respond :)

Dom

@tigrannajaryan
Copy link
Contributor Author

Thanks @domodwyer

@jacobmarble
Copy link
Member

Hey @tigrannajaryan , I'm back from ooo, working on this now.

@jacobmarble
Copy link
Member

@tigrannajaryan: v0.2.17 is tagged, with dependency updates to otel 0.48.0 and all deprecation warnings (per staticcheck v2021.1.2) resolved.

@tigrannajaryan
Copy link
Contributor Author

Thanks. Collector updated to use v0.2.17: open-telemetry/opentelemetry-collector-contrib#9226

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.

3 participants