-
Notifications
You must be signed in to change notification settings - Fork 711
Update docs #1548
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
Update docs #1548
Conversation
@@ -18,6 +18,7 @@ Installation | |||
|
|||
pip install opentelemetry-api | |||
pip install opentelemetry-sdk | |||
pip install opentelemetry-tools-google-cloud |
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.
Alternatively, we could remove the code for GCP resource detection and just have OTEL resource detection from env OTEL_RESOURCE_ATTRIBUTES
. We might want to add a note that vendor specific resource detection extensions live outside the open-telemetry and should be installed as a separate dependencies.
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.
I would prefer this approach. We don't want to add vendor specific stuff for such a basic example.
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.
LGTM, thanks!
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.
LGTM
Description
The example mentioned in basic resource needs a dependency
opentelemetry-tools-google-cloud
to work.opentelemetry-python/docs/examples/basic_tracer/resources.py
Lines 1 to 19 in ca8c097
Based on discussion #1548 (comment) removed the GCP resource detector and added simple resource creation.