-
Notifications
You must be signed in to change notification settings - Fork 400
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
Create BatchSpanProcessor from env in TracerProvider #445
Create BatchSpanProcessor from env in TracerProvider #445
Conversation
crate::util::tokio_interval_stream, | ||
tokio::time::sleep, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oddly, from_env switches these two last arguments :(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah that looks like an oversight, want to create a PR to fix that?
This allows for configuring BSP when just `with_exporter` is used, instead of requiring users to create the BSP themselves when they want to pull from the environment.
aee7248
to
0ff3ed5
Compare
Codecov Report
@@ Coverage Diff @@
## main #445 +/- ##
==========================================
- Coverage 48.80% 48.78% -0.02%
==========================================
Files 66 66
Lines 5450 5450
==========================================
- Hits 2660 2659 -1
- Misses 2790 2791 +1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
crate::util::tokio_interval_stream, | ||
tokio::time::sleep, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah that looks like an oversight, want to create a PR to fix that?
We discussed the |
This allows for configuring BSP when just
with_exporter
is used, instead of requiring users to create the BSP themselves when they want to pull from the environment.It's possible that maybe this isn't the best route to go, and should instead just have users of TracerProvider expose with_batch_exporter themselves and have people pass
with_env
up, but figured I'd throw this together as it was the simplest thing to get what we needed and start the conversation 😄