sentry-python
sentry-python copied to clipboard
The official Python SDK for Sentry.io
### Problem Statement [Plotly Dash](https://dash.plotly.com/) is an [open-source](https://github.com/plotly/dash) low-code framework for rapidly building data apps in Python based on Flask & React. ### Solution Brainstorm The existing Python and React...
* update `Propagator` (see [JS](https://github.com/getsentry/sentry-javascript/blob/develop/packages/opentelemetry/src/propagator.ts) for inspiration) * implement propagation APIs on POTelSpans: * `continue_from_headers`, `continue_from_environ`, `from_traceparent`, `iter_headers`, `to_baggage`, etc. * figure out if we still need the `Baggage` class
* top level api changes * test manual instrumentation setup and make sure no errors are thrown * compat / unit tests
Things that rely on the `scope.span` reference will only work currently with `POTelSpan` and not native otel spans. Think of the best way to wrap both of these usages.
## Problem Before POTel, you could do: ```python span = start_span(...) sentry_sdk.get_current_scope().span = span # forgot this initially, in case you're confused by the comments # do stuff span.finish() ```...
* replace `scope.transaction` usages with `scope.root_span`
* add [resource](https://github.com/open-telemetry/opentelemetry-python/blob/c5b0244340998ad1f850997522061af7499ccf6c/opentelemetry-sdk/src/opentelemetry/sdk/trace/__init__.py#L1177) like [JS](https://github.com/getsentry/sentry-javascript/blob/4c48b07197eb4c2ff0ea141dca3a2761ec8cbdf9/packages/node/src/sdk/initOtel.ts#L109-L113) * see if using [`span_limits`](https://github.com/open-telemetry/opentelemetry-python/blob/c5b0244340998ad1f850997522061af7499ccf6c/opentelemetry-sdk/src/opentelemetry/sdk/trace/__init__.py#L1183) makes sense
### Version incoming trace version - 2.11.0, outgoing trace version - unknown ### Steps to Reproduce https://sentry.sentry.io/api/0/projects/sentry/sentry/events/6122ec07d3694b7ba1aa88db962afde5/json/ * `trace_id`s on the two headers are different * `sentry-trace` is sampled but...
### Problem Statement [Valkey](https://valkey.io/) is an open-source fork of Redis. We have an integration for Redis, but not for Valkey yet. ### Solution Brainstorm Consider creating an integration for Valkey...