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).
As discussed here, we want to add a
serviceservice.namelabel to all the metrics we produce (allfunction.metrics andbuild_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).service.namelabel to the spec #28service.namelabel to all metrics autometrics-rs#116service.namelabel to all metrics autometrics-go#60service.namelabel to all metrics autometrics-ts#86service.namelabel to all metrics autometrics-py#61service.namelabel to all metrics autometrics-cs#12service.namelabel to all metrics jamsiedaly/autometricsj#4