-
Notifications
You must be signed in to change notification settings - Fork 850
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
Configuration class for BatchSpanProcessor #1080
Configuration class for BatchSpanProcessor #1080
Conversation
sdk/src/main/java/io/opentelemetry/sdk/common/ConfigBuilder.java
Outdated
Show resolved
Hide resolved
sdk/src/main/java/io/opentelemetry/sdk/common/ConfigBuilder.java
Outdated
Show resolved
Hide resolved
sdk/src/main/java/io/opentelemetry/sdk/common/ConfigBuilder.java
Outdated
Show resolved
Hide resolved
sdk/src/main/java/io/opentelemetry/sdk/common/ConfigBuilder.java
Outdated
Show resolved
Hide resolved
sdk/src/main/java/io/opentelemetry/sdk/trace/export/BatchSpansProcessor.java
Outdated
Show resolved
Hide resolved
sdk/src/main/java/io/opentelemetry/sdk/trace/export/BatchSpansProcessor.java
Outdated
Show resolved
Hide resolved
sdk/src/main/java/io/opentelemetry/sdk/trace/export/BatchSpansProcessor.java
Outdated
Show resolved
Hide resolved
sdk/src/main/java/io/opentelemetry/sdk/common/ConfigBuilder.java
Outdated
Show resolved
Hide resolved
sdk/src/main/java/io/opentelemetry/sdk/trace/export/BatchSpansProcessor.java
Outdated
Show resolved
Hide resolved
sdk/src/main/java/io/opentelemetry/sdk/trace/export/BatchSpansProcessor.java
Outdated
Show resolved
Hide resolved
sdk/src/main/java/io/opentelemetry/sdk/trace/export/BatchSpansProcessor.java
Show resolved
Hide resolved
This PR proposes replacing Builders with Config classes. Any idea what set of SDK entities would end up being converted over to Config-based creation? |
@jkwatson I think I posted in the issue what is the target |
@thisthat any progress on this? I think we added some ideas in the comments. |
Sorry, I was pretty busy this week with internal stuff. I will work on this in the next days! |
Codecov Report
@@ Coverage Diff @@
## master #1080 +/- ##
============================================
+ Coverage 85.54% 85.68% +0.13%
Complexity 1085 1085
============================================
Files 138 138
Lines 3993 4037 +44
Branches 356 366 +10
============================================
+ Hits 3416 3459 +43
+ Misses 435 433 -2
- Partials 142 145 +3
Continue to review full report at Codecov.
|
After 957ecc2, I have two questions:
|
sdk/src/main/java/io/opentelemetry/sdk/trace/export/BatchSpansProcessor.java
Outdated
Show resolved
Hide resolved
I'd go with YES.
Strong yes here - I think lots of these naming convention/config routines can be reused in other places. It can be done in a follow-up PR though. |
Not sure why this comment ended up over here, @carlosalberto |
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.
I really like the direction of this PR.
sdk/src/main/java/io/opentelemetry/sdk/trace/export/BatchSpansProcessor.java
Show resolved
Hide resolved
sdk/src/main/java/io/opentelemetry/sdk/trace/export/BatchSpansProcessor.java
Outdated
Show resolved
Hide resolved
sdk/src/main/java/io/opentelemetry/sdk/trace/export/BatchSpansProcessor.java
Outdated
Show resolved
Hide resolved
sdk/src/main/java/io/opentelemetry/sdk/trace/export/BatchSpansProcessor.java
Outdated
Show resolved
Hide resolved
sdk/src/main/java/io/opentelemetry/sdk/trace/export/BatchSpansProcessor.java
Outdated
Show resolved
Hide resolved
sdk/src/main/java/io/opentelemetry/sdk/trace/export/BatchSpansProcessor.java
Outdated
Show resolved
Hide resolved
sdk/src/main/java/io/opentelemetry/sdk/trace/export/BatchSpansProcessor.java
Outdated
Show resolved
Hide resolved
sdk/src/main/java/io/opentelemetry/sdk/trace/export/package-info.java
Outdated
Show resolved
Hide resolved
sdk/src/main/java/io/opentelemetry/sdk/trace/export/BatchSpansProcessor.java
Show resolved
Hide resolved
sdk/src/main/java/io/opentelemetry/sdk/trace/export/BatchSpansProcessor.java
Outdated
Show resolved
Hide resolved
Is there a desire to have unified env vars across language implementations? If so, should we write a spec for these, for more widespread review? |
sdk/src/main/java/io/opentelemetry/sdk/trace/export/BatchSpansProcessor.java
Show resolved
Hide resolved
sdk/src/test/java/io/opentelemetry/sdk/trace/export/BatchSpansProcessorTest.java
Show resolved
Hide resolved
sdk/src/main/java/io/opentelemetry/sdk/trace/export/BatchSpansProcessor.java
Outdated
Show resolved
Hide resolved
sdk/src/main/java/io/opentelemetry/sdk/trace/export/BatchSpansProcessor.java
Outdated
Show resolved
Hide resolved
sdk/src/main/java/io/opentelemetry/sdk/trace/export/BatchSpansProcessor.java
Outdated
Show resolved
Hide resolved
sdk/src/main/java/io/opentelemetry/sdk/trace/export/BatchSpansProcessor.java
Show resolved
Hide resolved
sdk/src/main/java/io/opentelemetry/sdk/trace/export/BatchSpansProcessor.java
Outdated
Show resolved
Hide resolved
@thisthat this PR is on you now, we need fixes for the round of comments we have for the moment. |
I will open an issue in the spec after we are done with the configuration for all classes so I can provide the list of env vars we need. Regarding this topic, there is already an issue for setting the exporter host: open-telemetry/opentelemetry-specification#172 @bogdandrutu and @jkwatson, I have addressed your the suggestions, PTAL. |
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.
I think we are up for a good start. More refactoring will come when we change the next class.
sdk/src/main/java/io/opentelemetry/sdk/trace/export/BatchSpansProcessor.java
Outdated
Show resolved
Hide resolved
sdk/src/main/java/io/opentelemetry/sdk/trace/export/BatchSpansProcessor.java
Outdated
Show resolved
Hide resolved
sdk/src/main/java/io/opentelemetry/sdk/trace/export/BatchSpansProcessor.java
Outdated
Show resolved
Hide resolved
sdk/src/main/java/io/opentelemetry/sdk/trace/export/BatchSpansProcessor.java
Outdated
Show resolved
Hide resolved
|
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.
needs a rebase, but let's get this in and start the refactoring/cleanup
As this PR looks ready to be merged: shall we create an issue to keep track of the upcoming configuration refactoring, so we can use this all over our SDK components? |
I think the refactoring should come naturally by adding the rest of the configuration. I don't think we need a separate issue to track it. |
@jkwatson what about my comments? Do we want to get them fixed? |
Sure. I thought that since you had approved, that they had all been resolved. @thisthat could you respond to the last couple of @bogdandrutu 's comments? |
2a0a5b0
to
fc02ade
Compare
fc02ade
to
67a4741
Compare
I totally agree with @bogdandrutu 's comment and I have addressed them! |
* Add config class for BatchSpanProcessor * Implement Configuration for BatchSpanProcessor * goJF after rebase
* Add config class for BatchSpanProcessor * Implement Configuration for BatchSpanProcessor * goJF after rebase
* Add config class for BatchSpanProcessor * Implement Configuration for BatchSpanProcessor * goJF after rebase
This addresses #996 creating a configuration class for the
BatchSpanProcessor
.The
ConfigBuilder
class contains the common code that will be shared with other configuration classes.