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

Ability to configure additional span processors (e.g. to export to another sink) #99

Closed
adriangb opened this issue May 2, 2024 · 0 comments · Fixed by #233
Closed

Comments

@adriangb
Copy link
Member

adriangb commented May 2, 2024

Description

https://pydanticlogfire.slack.com/archives/C06EDRBSAH3/p1714686467955179

feature request! being able to add another span processor while still including the default logfire one. what I’m doing right now is hacking it by not providing the second processor up front, then doing:

from logfire._internal.config import GLOBAL_CONFIG
from logfire._internal.exporters.processor_wrapper import SpanProcessorWrapper

span_processor = SpanProcessorWrapper(SentrySpanProcessor(), GLOBAL_CONFIG.scrubber)
GLOBAL_CONFIG.processors = [span_processor]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant