Skip to content

Scope: is the order of attributes producing a different scope? #48

Closed
@inge4pres

Description

@inge4pres

Describe the current state

The attributes are part of the hash used to put InstrumentationScope as the key for meters and loggers in their respective providers' hashmpas.

What happens if attributes are equal, but placed in the different order? Is the hash going to change?

Theoretically, the same attributes set but in a different order should not produce a separate scope.

Describe the desired state

  • understand if the has differs
  • if it does, fix the hash calculation, likely by sorting the attributes by key (which is always a []const u8

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomersquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions