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 usage of direction attribute #11815

Closed
14 tasks done
codeboten opened this issue Jun 29, 2022 · 15 comments
Closed
14 tasks done

Remove usage of direction attribute #11815

codeboten opened this issue Jun 29, 2022 · 15 comments
Labels

Comments

@TylerHelmuth TylerHelmuth added the priority:p2 Medium label Jul 1, 2022
@dmitryax
Copy link
Member

dmitryax commented Jul 6, 2022

@codeboten I'm not sure several feature gates for hostmetrics receiver provides a good user experience. Maybe we should have one feature gate for all host metrics with a single documentation?

Also I would like to have all of them aligned to the same release schedule. So if we cannot resolve #11816 by tomorrow's release, I would recommend adjusting it a bit (delaying the schedule for one more release).

@dmitryax
Copy link
Member

dmitryax commented Jul 6, 2022

I will submit a PR for ^ by tomorrow

@TylerHelmuth
Copy link
Member

@codeboten @dmitryax did the receiver.hostmetricsreceiver.emitMetricsWithDirectionAttribute and receiver.hostmetricsreceiver.emitMetricsWithoutDirectionAttribute gates make it into the 0.55.0 release? If so we should update the 0.55.0 release notes with the appropriate gates. I just spent way too much time messing with the feature gates listed in the release notes instead of checking the hostmetrics README while updating some collector examples we have lol

@dmitryax
Copy link
Member

dmitryax commented Jul 7, 2022

Looks like #12134 was prepared before #12105 got merged. So we still have another kind of changelog race condition :)

I'll submit a PR to update the generated changelog and release notes

@dmitryax
Copy link
Member

dmitryax commented Jul 7, 2022

Submitted #12171

@crobert-1
Copy link
Member

crobert-1 commented Jul 21, 2022

[exporter/signalfx] - Another place that needs updated

The signalfxexporter has functionality that "translates" input metrics into output metrics, and the default translation functionality references the direction attributes. These references should be updated for the new metric format.

I've created issue #12641 to track this.

@dmitryax
Copy link
Member

dmitryax commented Aug 2, 2022

@codeboten can we slow down the adoption of the new metrics a bit? We are having troubles on Splunk Observability side to provide the backward compatibility. Can we introduce the new metrics feature-gated in silent mode for a few more releases, then start the transition in a more relaxed schedule? I believe our backend might be not the only one trying to do it gracefully.

It may be good to have all the receivers ready by the start of the deprecation process so the schedule is aligned for all the receivers.

I'll be back in a week and can help with this effort.

@codeboten
Copy link
Contributor Author

👍🏻 sure no problem

@mwear
Copy link
Member

mwear commented Aug 11, 2022

@dmitryax I'm happy to help push this work forward, and adjust the transition plan in whatever way makes the most sense. It sounds like it would be best if we:

  • Implement the feature gates in each receiver, but leave them undocumented, and continue to emit metrics with direction attributes
  • Once the feature gates exist for each receiver
    • Publish a revised transition plan
    • Document the gates
    • Add deprecation warnings
    • Push these changes out in one release, that will officially begin the transition plan
  • At some later point in time (according to the transition plan), default to emitting metrics without direction, but keep the feature gate to allow users to enable emitting metrics with a direction attribute if needed
  • When the transition period is over:
    • Remove the gates
    • Remove the documentation, warnings, etc around the transition plan

Let me know if this sounds reasonable or if you have any further suggestions on the plan and how we should carry it out.

@dmitryax
Copy link
Member

Hi @mwear, this is exactly what I envisioned. Thanks for putting the plan together. Let's follow it

@mwear
Copy link
Member

mwear commented Aug 11, 2022

Great. One followup question. I think the answer is yes, but I wanted to clarify. Should we remove documentation about the feature gates and transition plan from the readmes where they are currently documented as well as any existing deprecation messages?

@dmitryax
Copy link
Member

Should we remove documentation about the feature gates and transition plan from the readmes where they are currently documented as well as any existing deprecation messages?

Yes, let's remove it for now

@mwear
Copy link
Member

mwear commented Aug 15, 2022

Is this work impacted by: open-telemetry/opentelemetry-specification#2726. If so, should we continue with it, or wait for a resolution?

@dmitryax
Copy link
Member

It is indeed. Let's hold off until it's resolved

@codeboten
Copy link
Contributor Author

Closing this as the resolution was to not implement anything unless the specification declares any changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants