-
Notifications
You must be signed in to change notification settings - Fork 293
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Instrument EMR's relocated AWS SDK (#8157)
* Support configuring a different namespace in AWS-SDK module
- Loading branch information
Showing
5 changed files
with
56 additions
and
10 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
25 changes: 25 additions & 0 deletions
25
.../aws-java-sdk-1.11.0/src/main/java/datadog/trace/instrumentation/aws/v0/EmrSdkModule.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,25 @@ | ||
package datadog.trace.instrumentation.aws.v0; | ||
|
||
import static java.util.Collections.singletonMap; | ||
|
||
import com.google.auto.service.AutoService; | ||
import datadog.trace.agent.tooling.InstrumenterModule; | ||
import java.util.Map; | ||
|
||
/** Repackaged AWS SDK instrumentations for Amazon EMR. */ | ||
@AutoService(InstrumenterModule.class) | ||
public class EmrSdkModule extends AwsSdkModule { | ||
public EmrSdkModule() { | ||
super("com.amazon.ws.emr.hadoop.fs.shaded.com.amazonaws", "emr-aws-sdk"); | ||
} | ||
|
||
@Override | ||
public String muzzleDirective() { | ||
return "emr-aws-sdk"; | ||
} | ||
|
||
@Override | ||
public Map<String, String> adviceShading() { | ||
return singletonMap("com.amazonaws", "com.amazon.ws.emr.hadoop.fs.shaded.com.amazonaws"); | ||
} | ||
} |
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