Skip to content

Hash by ScopeName to prevent double counts #1640

Open

Description

@sgarfinkel

In some instances, we've found that OTEL instrumentation will produce exactly the same ResourceAttributes, ScopeAttributes, and Attributes for a histogram, but with different ScopeNames. This causes histogram calculations to fail because when partitioning ScopeName is not accounted for.

Activity

  1. BilalAtique commented on Nov 9, 2026

    @BilalAtique
    Contributor

    I'd like to take this one. #3598 adds ScopeName to the series key (cityHash64(ScopeName, ScopeAttributes, ResourceAttributes, Attributes)) in the gauge, sum, histogram and exponential histogram queries, so two scopes with the same attributes stay two series, also in alerts. Happy to adjust the approach if you had something else in mind.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions