You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The tags get added to the span for the middleware. I understand this is desirable in many cases but it'd also be nice to just add some tags to the parent span (or the Service Entry Span) especially because we have many middleware where the code just happens to be the best place to grab some information. In my initial implementation I found I hunted and pecked to find certain things depending on the middleware, when really I just want to stuff a bunch of fields in one span.
For now I just turned off middleware processing but ideally I'd like to have my cake and eat it to.
The text was updated successfully, but these errors were encountered:
You could try tracer.scope().active().context()._trace.started[0] to accomplish what you want, but obviously it relies on internal API which could change at any moment 😄 (works in 5.2.0)
I might just be doing things wrong but I have a restify app which has a bunch of middleware (hooks), that the tracer supports. When I add tags:
The tags get added to the span for the middleware. I understand this is desirable in many cases but it'd also be nice to just add some tags to the parent span (or the Service Entry Span) especially because we have many middleware where the code just happens to be the best place to grab some information. In my initial implementation I found I hunted and pecked to find certain things depending on the middleware, when really I just want to stuff a bunch of fields in one span.
For now I just turned off middleware processing but ideally I'd like to have my cake and eat it to.
The text was updated successfully, but these errors were encountered: