feat: winston instrumentation#425
Conversation
Codecov Report
@@ Coverage Diff @@
## main #425 +/- ##
=======================================
Coverage 95.83% 95.83%
=======================================
Files 15 15
Lines 624 624
Branches 94 94
=======================================
Hits 598 598
Misses 26 26 |
obecny
left a comment
There was a problem hiding this comment.
This is really nice piece of work, thx for contribution
Would you be able to include the screenshots to show how the spans look like, can be in this or separate PR ?
Perhaps I understood the question wrong, but the instrumentation itself does not generate spans, only injects the active span context to log records. E.g. an example: |


Which problem is this PR solving?
Similarly to bunyan (#419), adds trace context to log metadata fields.
Short description of the changes
Injects
trace_id,span_id,trace_flagsto winston log metadata.Note that testing with older winston versions (
1.1.2and2.4.4) was done manually. To help with testing in the future, see open-telemetry/opentelemetry-js#2110