-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Further improve the construction of LateBoundBatchSpanProcessor
- Loading branch information
Showing
4 changed files
with
43 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...io/quarkus/opentelemetry/runtime/exporter/otlp/RemoveableLateBoundBatchSpanProcessor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package io.quarkus.opentelemetry.runtime.exporter.otlp; | ||
|
||
import io.quarkus.opentelemetry.runtime.OpenTelemetryProducer; | ||
|
||
/** | ||
* The only point in having this class is to allow {@link OpenTelemetryProducer} | ||
* to easily ignore the configured {@link LateBoundBatchSpanProcessor}. | ||
* <p> | ||
* In the future when {@link OpenTelemetryProducer} is replaced by a synthetic bean, this class will no longer be necessary | ||
*/ | ||
public final class RemoveableLateBoundBatchSpanProcessor extends LateBoundBatchSpanProcessor { | ||
|
||
public static final RemoveableLateBoundBatchSpanProcessor INSTANCE = new RemoveableLateBoundBatchSpanProcessor(); | ||
|
||
private RemoveableLateBoundBatchSpanProcessor() { | ||
super(null); | ||
} | ||
} |