Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/live/observability/client.ts>Registry#setDefaultLabels

deco is the edge-native site editor and app framework for building dynamic, high-performance sites with a built-in visual admin UI.
Go to Latest
method Registry.prototype.setDefaultLabels
import { Registry } from "https://deno.land/x/live@1.36.6/observability/client.ts";

Set static labels to every metric emitted by this registry

Parameters

labels: Object

of name/value pairs: { defaultLabel: "value", anotherLabel: "value 2" }