Skip to content

Add service.name label to all metrics #27

Open
@emschwartz

Description

@emschwartz

As discussed here, we want to add a service service.name label to all the metrics we produce (all function. metrics and build_info).

It should be possible to load this label from an environment variable, or if there is an Autometrics initialization function it can be a parameter to that function. If a service name is not specified, the package name should be used by default.

All of the generated queries should be updated as well so that function metrics are identified by (function, module, service) (function, module, service_name).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions