-
Notifications
You must be signed in to change notification settings - Fork 872
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
End span on cancellation of subscription to reactive publishers (#3153)
* Stop span on cancellation of subscription to reactive publisher * Add semantic attribute on cancelation of reactive publisher * Change TracingOperator and TracingAssembly to accept configuration from Javaagent
- Loading branch information
Showing
36 changed files
with
1,676 additions
and
111 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
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
22 changes: 22 additions & 0 deletions
22
...ain/java/io/opentelemetry/instrumentation/reactor/ReactorAsyncSpanEndStrategyBuilder.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,22 @@ | ||
/* | ||
* Copyright The OpenTelemetry Authors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package io.opentelemetry.instrumentation.reactor; | ||
|
||
public final class ReactorAsyncSpanEndStrategyBuilder { | ||
private boolean captureExperimentalSpanAttributes; | ||
|
||
ReactorAsyncSpanEndStrategyBuilder() {} | ||
|
||
public ReactorAsyncSpanEndStrategyBuilder setCaptureExperimentalSpanAttributes( | ||
boolean captureExperimentalSpanAttributes) { | ||
this.captureExperimentalSpanAttributes = captureExperimentalSpanAttributes; | ||
return this; | ||
} | ||
|
||
public ReactorAsyncSpanEndStrategy build() { | ||
return new ReactorAsyncSpanEndStrategy(captureExperimentalSpanAttributes); | ||
} | ||
} |
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
22 changes: 22 additions & 0 deletions
22
...ibrary/src/main/java/io/opentelemetry/instrumentation/reactor/TracingOperatorBuilder.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,22 @@ | ||
/* | ||
* Copyright The OpenTelemetry Authors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package io.opentelemetry.instrumentation.reactor; | ||
|
||
public final class TracingOperatorBuilder { | ||
private boolean captureExperimentalSpanAttributes; | ||
|
||
TracingOperatorBuilder() {} | ||
|
||
public TracingOperatorBuilder setCaptureExperimentalSpanAttributes( | ||
boolean captureExperimentalSpanAttributes) { | ||
this.captureExperimentalSpanAttributes = captureExperimentalSpanAttributes; | ||
return this; | ||
} | ||
|
||
public TracingOperator build() { | ||
return new TracingOperator(captureExperimentalSpanAttributes); | ||
} | ||
} |
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
Oops, something went wrong.