Remove connid from scopename in blocked conns

This commit is contained in:
Marco Munizaga 2022-06-20 18:09:58 -07:00
parent 1c172ace77
commit 2385a33f55

View File

@ -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)}