-
Notifications
You must be signed in to change notification settings - Fork 869
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make netty-* indy compatible (#11559)
Co-authored-by: Jonas Kunz <[email protected]> Co-authored-by: Trask Stalnaker <[email protected]>
- Loading branch information
1 parent
d47289a
commit d0d39b8
Showing
22 changed files
with
283 additions
and
160 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
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
36 changes: 36 additions & 0 deletions
36
...agent/src/main/java/io/opentelemetry/javaagent/instrumentation/netty/v3_8/NettyScope.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,36 @@ | ||
/* | ||
* Copyright The OpenTelemetry Authors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package io.opentelemetry.javaagent.instrumentation.netty.v3_8; | ||
|
||
import io.opentelemetry.context.Context; | ||
import io.opentelemetry.instrumentation.netty.common.internal.NettyConnectionRequest; | ||
import io.opentelemetry.instrumentation.netty.common.internal.Timer; | ||
|
||
/** Container used to carry state between enter and exit advices */ | ||
public class NettyScope { | ||
|
||
private final Context parentContext; | ||
private final NettyConnectionRequest request; | ||
private final Timer timer; | ||
|
||
public NettyScope(Context parentContext, NettyConnectionRequest request, Timer timer) { | ||
this.parentContext = parentContext; | ||
this.request = request; | ||
this.timer = timer; | ||
} | ||
|
||
public Context getParentContext() { | ||
return parentContext; | ||
} | ||
|
||
public NettyConnectionRequest getRequest() { | ||
return request; | ||
} | ||
|
||
public Timer getTimer() { | ||
return timer; | ||
} | ||
} |
Oops, something went wrong.