-
Notifications
You must be signed in to change notification settings - Fork 653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sdk: Span.resource will now default to an empty resource #724
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Fixes #702