sdk: Span.resource will now default to an empty resource#724
sdk: Span.resource will now default to an empty resource#724toumorokoshi merged 4 commits intoopen-telemetry:masterfrom yashmehrotra:fix-702
Conversation
|
In Travis CI, the error I am getting is Do you know what could be the issue ? |
|
Having some trouble pushing some fixes, but this is occurring because the sphinx document needs to resolve a reference to the Resource object in the docs itself, and no sphinx automodule sphinx. Here's a patch that would fix it: |
|
Thanks @toumorokoshi , its all green now 😄 |
|
Should I also remove the - if span.resource:
- tags.extend(_extract_tags(span.resource.labels))
+ tags.extend(_extract_tags(span.resource.labels)) |
|
Great, thank you! can you take a look around and see if there's any references that we should update? I believe the jaeger / zipkin integrations are defensively handling for a None resource object. That code should be cleaned up to reduce confusion. |
yes! that'd be great, along with any other places where this was handled defensively. |
|
@toumorokoshi Could only find 1 instance where this was happening |
Fixes #702