Skip to content

Instantly share code, notes, and snippets.

@MadVikingGod
Created November 3, 2022 14:39
Show Gist options
  • Save MadVikingGod/e3e65d6217d321d5de8ded159f4abc7e to your computer and use it in GitHub Desktop.
Save MadVikingGod/e3e65d6217d321d5de8ded159f4abc7e to your computer and use it in GitHub Desktop.

Metric Test Cases

This is a list of language independent test cases to help validate an SDK's behavior. It's intended to enumerate some of the interactions of different parts of the specification.

Async Counters with Attribute Filters

Instrument

Async Counter

View

Match("*")
AttributeFilter(None)

Action

ctr.Observe(1, ("version", 1))
ctr.Observe(2, ("version", 2))

Output

[
    {
        "name": "test-counter"
        "data": {
            "data_points": [
                "attributes": []
                "value": 3
            ]
        }
    }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment