You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dd-java-agent/instrumentation/aws-java-sdk-1.11.0/src/main/java/datadog/trace/instrumentation/aws/v0/AwsSdkModule.java
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@
7
7
importjava.util.List;
8
8
importjava.util.Map;
9
9
10
+
/** Groups the instrumentations for AWS SDK 1.11.0+. */
|[`InstrumenterModule`](https://github.com/DataDog/dd-trace-java/blob/82a3400cd210f4051b92fe1a86cd1b64a17e005e/dd-java-agent/agent-tooling/src/main/java/datadog/trace/agent/tooling/InstrumenterModule.java)| Avoid extending `InstrumenterModule` directly. When no other TargetGroup is applicable we generally default to `InstrumenterModule.Tracing`|
138
139
140
+
### Grouping Instrumentations
141
+
142
+
Related instrumentations may be grouped under a single `InstrumenterModule` to share common details
143
+
such as integration name, helpers, context store use, and optional `classLoaderMatcher()`.
144
+
145
+
Module classes:
146
+
147
+
1. Must be annotated with `@AutoService(InstrumenterModule.class)`
148
+
2. Should be declared in a file that ends with `Module.java`
149
+
3. Should extend one of the six abstract TargetSystem `InstrumenterModule` classes
150
+
4. Should have a `typeInstrumentations()` method that returns the instrumentations in the group
151
+
5. Should NOT implement one of the `Instrumenter` interfaces
152
+
153
+
> [!WARNING]
154
+
> Grouped instrumentations must NOT be annotated with `@AutoService(InstrumenterModule.class)
155
+
> and must NOT extend any of the six abstract TargetSystem `InstrumenterModule` classes
156
+
157
+
Existing instrumentations can be grouped under a new module, assuming they share the same integration name.
0 commit comments