Skip to content

[Tracking] Decide if the tags order matter when creating meter or instrument #86614

Closed

Description

@tarekgh

As we began caching the instruments or meters that are created, we aim to avoid creating new objects if the creation parameters (such as name, unit, tags) match any of the cached objects. The issue at hand is whether we should consider the comparison of tags to be order sensitive or not. This is a decision we need to make.

Activity

  1. ghost added
    needs-area-label
    on May 23, 2023
  2. ghost added
    untriaged
    on May 23, 2023
  3. self-assigned this
    on May 23, 2023
  4. added and removed
    untriaged
    needs-area-label
    on May 23, 2023
  5. added this to the 8.0.0 milestone on May 23, 2023
  6. JamesNK commented on May 23, 2023

    @JamesNK
    Member

    From other thread:

    What I'm getting at is that if you specify meter options with the same name and two tags in different MeterFactory.Create calls:

    • Create(Name = "Test", Tags = "A=1, B=2")
    • Create(Name = "Test", Tags = "B=2, A=1")

    The result is two different meters. Do exporters, e.g. Prometheus, care about tag order?

    I don't know if it's important or not, I just want to make sure a metrics expert has thought about it.

  7. tarekgh commented on May 26, 2023

    @tarekgh
    MemberAuthor

    This is addressed by #86740

  8. ghost locked as resolved and limited conversation to collaborators on Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions