GoogleCloudPlatform / opentelemetry-operations-python

OpenTelemetry Python exporters for Google Cloud Monitoring and Trace
https://google-cloud-opentelemetry.readthedocs.io/en/stable/
Apache License 2.0
63 stars 45 forks source link

Update a few examples broken or misleading examples #342

Closed aabmass closed 2 months ago

aabmass commented 2 months ago
aabmass commented 2 months ago

OTel adds an atexit handler automatically which will run before the python process exits normally (which these examples do). It's on by default https://github.com/open-telemetry/opentelemetry-python/blob/b1e99c1555721f818e578d7457587693e767e182/opentelemetry-sdk/src/opentelemetry/sdk/trace/__init__.py#L1195