Skip to content

Discuss: labels #7

@garthk

Description

@garthk

Something feeling more wrong the more I play with #6 is the magic in labels. I reckon injecting those to indicate %{env: "prod"} etc is a job better performed by event handling packages like Telemetry.Metrics than by event sending packages. Amongst other things, it concentrates the opinions about what labels are important into one piece of code or configuration that you control.

(Exploring the converse: if we want every package to call :telemetry.execute/𝑛 with useful measurements and metadata, which we do, and the responsibility for adding Prometheus-style labels to the metadata was the job of event senders, then you'd end up trying to express those opinions via every dependency you took. Feels somewhere between awkward and outright impossible, to me.)

I'll take @arkgil's comment here as more evidence that we want the weight of translating from :telemetry to other systems to be put on the packages implementing that translation, but I'll tag him in so he can correct me.

Like #1, if your design intent is to be strongly opinionated about Notion being a Prometheus-optimised :telemetry package, let me know and I'll express all these strong opinions elsewhere. :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions