mirror of
https://github.com/imgproxy/imgproxy.git
synced 2026-06-18 17:43:40 +02:00
Use NewGoroutine when starting a NewRelic segment
This commit is contained in:
@@ -176,7 +176,7 @@ func StartSegment(ctx context.Context, name string, meta map[string]any) context
|
||||
}
|
||||
|
||||
if txn, ok := ctx.Value(transactionCtxKey{}).(*newrelic.Transaction); ok {
|
||||
segment := txn.StartSegment(name)
|
||||
segment := txn.NewGoroutine().StartSegment(name)
|
||||
|
||||
for k, v := range meta {
|
||||
setMetadata(segment, k, v)
|
||||
|
||||
Reference in New Issue
Block a user