-
Usage example:There are some mission with different name, and their job is to do http request. I use What I have got:
Another thing....Is there any suggest stack of OTel deployment? For now I'm using I tried I would like these following features:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
You can set specific attributes to a metric when emitting it. For example: counter, _ := meter.Int64Counter("test")
counter.Add(context.Background(), 1, metric.WithAttributes(
attribute.String("foo", "bar"),
)) However, you can't add attributes to a metric once it has been emitted |
Beta Was this translation helpful? Give feedback.
For
Gauge
please refer to https://pkg.go.dev/go.opentelemetry.io/otel/metric#example-Meter-Asynchronous_single and https://pkg.go.dev/go.opentelemetry.io/otel/metric#WithAttributes