diff --git a/obs/stats.go b/obs/stats.go index cafc885..d45284b 100644 --- a/obs/stats.go +++ b/obs/stats.go @@ -323,6 +323,8 @@ func (r StatsTraceReporter) ConsumeEvent(evt rcmgr.TraceEvt) { // Only the top scope. We don't want to get the peerid here. scope := strings.SplitN(evt.Scope, ":", 2)[0] + // Drop the connection or stream id + scope = strings.SplitN(scope, "-", 2)[0] tags := []tag.Mutator{tag.Upsert(Scope, scope), tag.Upsert(Resource, resource)}