Add span and trace origins#2319
Conversation
9fb1e3c to
5c988f8
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2319 +/- ##
==========================================
+ Coverage 98.66% 98.68% +0.01%
==========================================
Files 205 205
Lines 13422 13486 +64
==========================================
+ Hits 13243 13308 +65
+ Misses 179 178 -1
|
|
rails CI is broken due to |
| DELAYED_JOB_CONTEXT_KEY = :"Delayed-Job" | ||
| ACTIVE_JOB_CONTEXT_KEY = :"Active-Job" | ||
| OP_NAME = "queue.delayed_job".freeze | ||
| OP_NAME = "queue.delayed_job" |
There was a problem hiding this comment.
Was .freeze removed from OP_NAME on purpose?
There was a problem hiding this comment.
some files have this on top so it applies to all strings by default
https://docs.ruby-lang.org/en/3.0/syntax/comments_rdoc.html#label-frozen_string_literal+Directive
I'll clean this up separately, just syntax nicety and it's not consistent in some files.
| ACTIVE_JOB_CONTEXT_KEY = :"Active-Job" | ||
| OP_NAME = "queue.delayed_job".freeze | ||
| OP_NAME = "queue.delayed_job" | ||
| SPAN_ORIGIN = "auto.queue.delayed_job" |
There was a problem hiding this comment.
Not all of the span origins have the .freeze call, should they?
:originattribute to span and use in trace context and span hashcloses #2068