Skip to content

Commit

Permalink
fix: OpenTelemetry metric names must only contain [A-Za-z0-9_.-] (#369)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdecat authored Nov 17, 2023
1 parent e093662 commit 3bb226f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hub/hub.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func (h *Hub) initialiseTelemetry() error {
h.telemetryShutdownFunc = shutdownTelemetry

hydrateCalls, err := otel.GetMeterProvider().Meter(constants.FdwName).Int64Counter(
fmt.Sprintf("%s/hydrate_calls_total", constants.FdwName),
fmt.Sprintf("%s-hydrate_calls_total", constants.FdwName),
metric.WithDescription("The total number of hydrate calls"),
)
if err != nil {
Expand Down

0 comments on commit 3bb226f

Please sign in to comment.