OpenTelemetry symbols marked private to pyright
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
Research direction
Start with the documented imports from sentry_sdk.integrations.opentelemetry and reproduce the pyright errors for SentryPropagator and SentrySpanProcessor. Compare the package-level paths with the propagator and span_processor paths shown in the report. Done means the documented imports work without pyright export errors.
Written by the indexing model from the issue text.
Description
How do you use Sentry?
Sentry Saas (sentry.io)
Version
1.32.0
Steps to Reproduce
- Use pyright
- Import from opentelemetry package:
from sentry_sdk.integrations.opentelemetry import SentryPropagator, SentrySpanProcessor
- pyright error:
error: "SentryPropagator" is not exported from module "sentry_sdk.integrations.opentelemetry"
Import from "sentry_sdk.integrations.opentelemetry.propagator" instead (reportPrivateImportUsage)
error: "SentrySpanProcessor" is not exported from module "sentry_sdk.integrations.opentelemetry"
Import from "sentry_sdk.integrations.opentelemetry.span_processor" instead (reportPrivateImportUsage)
Expected Result
Import without pyright errors
Actual Result
Errors as above.
By changing the imports to be more specific pyright would pass but this is not in the documentation:
from sentry_sdk.integrations.opentelemetry.propagator import SentryPropagator
from sentry_sdk.integrations.opentelemetry.span_processor import SentrySpanProcessor
- Dominant language
- Python
- Stars
- 2.2k
- Forks
- 672
- Avg merge
- 1d 13m
- Merged PRs (30d)
- 212
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from getsentry/sentry-python
-
Waiting for: Product Owner
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
getsentry/sentry-python#7543 · 1 comment ·
-
Python
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
getsentry/sentry-python#6992 · 1 comment ·
-
Improvement Python
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
getsentry/sentry-python#6970 · 1 comment ·
-
Bug Python
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
getsentry/sentry-python#6504 · 1 comment ·
-
Improvement Python Spans
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
getsentry/sentry-python#5833 · 1 comment ·
All issues in getsentry/sentry-python
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100