Fix logging integrations for DroppedSpan spans#602
Conversation
|
@basepi maybe it would make sense to add an |
|
Seems reasonable to me. I'll make that change today. |
|
@beniwohli Ready for review. Note that I do not include Probably not a terribly important distinction but I wanted to call it out explicitly in case you think I should include the field in this case. |
beniwohli
left a comment
There was a problem hiding this comment.
other than the __slots__ thing, LGTM!
The logging integrations assumed (erroneously) that all spans would have an ID. This fixes that assumption, so that
DroppedSpans don't cause exceptions.I also fixed up some tests to use the
elasticapm_clientfixture instead of manually creating a Tracer object.