-
To create a tracer and start a new span, one can use: import "go.opentelemetry.io/otel"
//...
ctx, span := otel.Tracer("com.application/handler").Start(ctx, "current_call") But to create a meter (with related counter), one should use: import "go.opentelemetry.io/otel/metric/global"
//...
meter, err := global.Meter("com.application/handler").SyncInt64().Counter("call_count")
panic_if_err(err) There seems exists some inconsistency. Why |
Beta Was this translation helpful? Give feedback.
Answered by
MrAlias
Jul 7, 2022
Replies: 1 comment 1 reply
-
The metrics API is not stable yet, it is not covered by our stability guarantees and may still change. The Once the metric API is stabilized an alias will be added to |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
davendu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The metrics API is not stable yet, it is not covered by our stability guarantees and may still change. The
go.opentelemetry.io/otel
package is stable.Once the metric API is stabilized an alias will be added to
go.opentelemetry.io/otel
for that function.