Skip to content

Commit

Permalink
Merge branch 'release/v1.27.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
bububa committed Aug 28, 2024
2 parents e8f36da + aaf36d5 commit 04b6835
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions marketing-api/core/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ func (c *SDKClient) Copy() *SDKClient {
sandbox: c.sandbox,
operatorIP: c.operatorIP,
client: c.client,
tracer: c.tracer,
}
}

Expand Down
2 changes: 1 addition & 1 deletion marketing-api/core/otel.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func (o *Otel) WithSpan(ctx context.Context, req *http.Request, resp model.Respo
o.histogram.Record(ctx, time.Since(startTime).Milliseconds(), metric.WithAttributes(o.attrs...))
}
if o.counter != nil {
counterAttrs := append(o.attrs, semconv.URLPath(req.URL.Path))
counterAttrs := append(o.attrs, semconv10.HTTPTargetKey.String(req.URL.Path))
o.counter.Add(ctx, 1, metric.WithAttributes(counterAttrs...))
}
if !span.IsRecording() {
Expand Down

0 comments on commit 04b6835

Please sign in to comment.