-
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.
Merge pull request #476 from newrelic/fix-mongo-instrumentation
Prevent mongodb instrumentation from applying to async/reactive clients
- Loading branch information
Showing
12 changed files
with
114 additions
and
4 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
14 changes: 14 additions & 0 deletions
14
instrumentation/mongodb-3.0/src/main/java/com/mongodb/async/client/MongoClients.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,14 @@ | ||
/* | ||
* | ||
* * Copyright 2021 New Relic Corporation. All rights reserved. | ||
* * SPDX-License-Identifier: Apache-2.0 | ||
* | ||
*/ | ||
|
||
package com.mongodb.async.client; | ||
|
||
import com.newrelic.api.agent.weaver.SkipIfPresent; | ||
|
||
// This instrumentation will cause Segment timeouts and incorrect metrics if it applies to the async driver | ||
@SkipIfPresent | ||
final class MongoClients {} |
14 changes: 14 additions & 0 deletions
14
...umentation/mongodb-3.0/src/main/java/com/mongodb/reactivestreams/client/MongoClients.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,14 @@ | ||
/* | ||
* | ||
* * Copyright 2021 New Relic Corporation. All rights reserved. | ||
* * SPDX-License-Identifier: Apache-2.0 | ||
* | ||
*/ | ||
|
||
package com.mongodb.reactivestreams.client; | ||
|
||
import com.newrelic.api.agent.weaver.SkipIfPresent; | ||
|
||
// This instrumentation will cause Segment timeouts and incorrect metrics if it applies to the reactive driver | ||
@SkipIfPresent | ||
final class MongoClients {} |
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
8 changes: 8 additions & 0 deletions
8
instrumentation/mongodb-3.1/src/main/java/com/mongodb/MongoClientSettings.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,8 @@ | ||
package com.mongodb; | ||
|
||
import com.newrelic.api.agent.weaver.SkipIfPresent; | ||
|
||
// Prevent this instrumentation module from applying when the mongodb-3.7 module does. | ||
@SkipIfPresent | ||
public final class MongoClientSettings { | ||
} |
14 changes: 14 additions & 0 deletions
14
instrumentation/mongodb-3.1/src/main/java/com/mongodb/async/client/MongoClients.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,14 @@ | ||
/* | ||
* | ||
* * Copyright 2021 New Relic Corporation. All rights reserved. | ||
* * SPDX-License-Identifier: Apache-2.0 | ||
* | ||
*/ | ||
|
||
package com.mongodb.async.client; | ||
|
||
import com.newrelic.api.agent.weaver.SkipIfPresent; | ||
|
||
// This instrumentation will cause Segment timeouts and incorrect metrics if it applies to the async driver | ||
@SkipIfPresent | ||
final class MongoClients {} |
14 changes: 14 additions & 0 deletions
14
instrumentation/mongodb-3.1/src/main/java/com/mongodb/async/client/NettyMongoClients.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,14 @@ | ||
/* | ||
* | ||
* * Copyright 2020 New Relic Corporation. All rights reserved. | ||
* * SPDX-License-Identifier: Apache-2.0 | ||
* | ||
*/ | ||
|
||
package com.mongodb.async.client; | ||
|
||
import com.newrelic.api.agent.weaver.SkipIfPresent; | ||
|
||
// This instrumentation will cause Segment timeouts and incorrect metrics if it applies to the async driver | ||
@SkipIfPresent | ||
final class NettyMongoClients {} |
14 changes: 14 additions & 0 deletions
14
...umentation/mongodb-3.1/src/main/java/com/mongodb/reactivestreams/client/MongoClients.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,14 @@ | ||
/* | ||
* | ||
* * Copyright 2021 New Relic Corporation. All rights reserved. | ||
* * SPDX-License-Identifier: Apache-2.0 | ||
* | ||
*/ | ||
|
||
package com.mongodb.reactivestreams.client; | ||
|
||
import com.newrelic.api.agent.weaver.SkipIfPresent; | ||
|
||
// This instrumentation will cause Segment timeouts and incorrect metrics if it applies to the reactive driver | ||
@SkipIfPresent | ||
final class MongoClients {} |
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
14 changes: 14 additions & 0 deletions
14
instrumentation/mongodb-3.7/src/main/java/com/mongodb/async/client/MongoClients.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,14 @@ | ||
/* | ||
* | ||
* * Copyright 2021 New Relic Corporation. All rights reserved. | ||
* * SPDX-License-Identifier: Apache-2.0 | ||
* | ||
*/ | ||
|
||
package com.mongodb.async.client; | ||
|
||
import com.newrelic.api.agent.weaver.SkipIfPresent; | ||
|
||
// This instrumentation will cause Segment timeouts and incorrect metrics if it applies to the async driver | ||
@SkipIfPresent | ||
final class MongoClients {} |
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