Skip to content
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

Move TestExporter to avoid requiring pytest #368

Merged
merged 5 commits into from
Aug 6, 2024
Merged

Conversation

alexmojaki
Copy link
Contributor

Closes #367

@alexmojaki alexmojaki requested a review from Kludex August 6, 2024 15:56
Copy link

cloudflare-workers-and-pages bot commented Aug 6, 2024

Deploying logfire-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: fcc2106
Status: ✅  Deploy successful!
Preview URL: https://8bc06213.logfire-docs.pages.dev
Branch Preview URL: https://alex-test-exporter.logfire-docs.pages.dev

View logs

@@ -75,6 +74,7 @@
from .exporters.quiet_metrics import QuietMetricExporter
from .exporters.remove_pending import RemovePendingSpansExporter
from .exporters.tail_sampling import TailSamplingOptions, TailSamplingProcessor
from .exporters.test import TestExporter
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Kludex it's not critical but I don't know why there isn't a stub for exporters.test when I run rye run generate-stubs. There's other stubs in the exporters folder.

Copy link
Member

@Kludex Kludex Aug 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's because the testing module is not in the __init__.py.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm talking about logfire._internal.exporters.test, not logfire.testing

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, because we don't include private objects.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'd need to add --include-private on the stubgen command for it to appear, I think...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But all the other internal exporter files are there

@alexmojaki alexmojaki enabled auto-merge (squash) August 6, 2024 16:07
@alexmojaki alexmojaki merged commit bb9a0cd into main Aug 6, 2024
12 checks passed
@alexmojaki alexmojaki deleted the alex/test-exporter branch August 6, 2024 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

logfire 0.50 requires pytest
2 participants