-
Notifications
You must be signed in to change notification settings - Fork 76
Deprecate instrumentation scope processor #1960
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
Deprecate instrumentation scope processor #1960
Conversation
failures seem like flakes. Retrying now |
apps/active_directory_ds.go
Outdated
otel.AddPrefix("workload.googleapis.com"), | ||
), | ||
otel.ModifyInstrumentationScope(r.Type(), "1.0"), | ||
otel.Transform( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just update the implementation of ModifyInstrumentationScope
with the new use of the otel.Transform
processor ?
IMO this would be helpful in the long run to reduce code duplication, reduce tech debt and the overall maintenance of 3P app receiver implementations. Also, it will identify this processor instance for future readers with purpose of "changing the instrumentation scope".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @ridwanmsharif @avilevy18, I think we discussed this and the idea was deprecating ModifyInstrumentationScope
entirely would decrease the surface area of otel.processors
, since ModifyInstrumentationScope
and Transform
are almost identical anyways
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Heads up, ended up changing the strategy to use the existing otel.TransformationMetrics
processor instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good! The new use of the existing otel.TransformationMetrics
to set Scope
looks good to me.
68af670
to
a5e2d6c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a great reduction of tech debt. Thanks for this!
Description
Deprecate the existing
modifyscope
processor within ops-agent and migrate to utilizing the transform processor OTTL for achieving the same functionality.Related issue
N/A
How has this been tested?
Unit Tests & Integration Tests
Checklist: