-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Instrument r2dbc-postgresql 1.0.0 (#1556)
Co-authored-by: Koen Punt <[email protected]>
- Loading branch information
Showing
8 changed files
with
81 additions
and
134 deletions.
There are no files selected for viewing
63 changes: 0 additions & 63 deletions
63
...9.0/src/test/java/com/nr/agent/instrumentation/r2dbc/PostgresqlNoInstrumentationTest.java
This file was deleted.
Oops, something went wrong.
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
27 changes: 27 additions & 0 deletions
27
...ql-0.9.2/src/main/java/io/r2dbc/postgresql/client/ReactorNettyClient_Instrumentation.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,27 @@ | ||
/* | ||
* | ||
* * Copyright 2023 New Relic Corporation. All rights reserved. | ||
* * SPDX-License-Identifier: Apache-2.0 | ||
* | ||
*/ | ||
package io.r2dbc.postgresql.client; | ||
|
||
import com.newrelic.api.agent.weaver.MatchType; | ||
import com.newrelic.api.agent.weaver.NewField; | ||
import com.newrelic.api.agent.weaver.Weave; | ||
import io.r2dbc.postgresql.client.ConnectionSettings; | ||
import reactor.netty.Connection; | ||
|
||
import java.util.Optional; | ||
import java.util.TimeZone; | ||
|
||
@Weave(type = MatchType.ExactClass, originalName = "io.r2dbc.postgresql.client.ReactorNettyClient") | ||
public abstract class ReactorNettyClient_Instrumentation { | ||
@NewField | ||
public final Connection clientConnection; | ||
|
||
private ReactorNettyClient_Instrumentation(Connection connection, ConnectionSettings settings) { | ||
this.clientConnection = connection; | ||
} | ||
|
||
} |
6 changes: 6 additions & 0 deletions
6
...ql-0.9.2/src/test/java/com/nr/agent/instrumentation/r2dbc/PostgresqlInstrumentedTest.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
63 changes: 0 additions & 63 deletions
63
...9.2/src/test/java/com/nr/agent/instrumentation/r2dbc/PostgresqlNoInstrumentationTest.java
This file was deleted.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
...dbc-postgresql-0.9.2/src/test/java/com/nr/agent/instrumentation/r2dbc/R2dbcTestUtils.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