| Modifier and Type | Field and Description |
|---|---|
| private static final ContextKey |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | Returns: TRUE to suppress the automatic instrumentation, FALSE to continue with the instrumentation.Checks if an automatic instrumentation should be suppressed with the provided Context. |
| public static void | suppressInstrumentation(Runnable runnable)
Adds a Context boolean key that will allow to identify HTTP calls coming from OTel exporters. |
| SUPPRESS_INSTRUMENTATION_KEY | back to summary |
|---|---|
| private static final ContextKey<Boolean> SUPPRESS_INSTRUMENTATION_KEY | |
| InstrumentationUtil | back to summary |
|---|---|
| private InstrumentationUtil() | |
| shouldSuppressInstrumentation | back to summary |
|---|---|
| public static boolean shouldSuppressInstrumentation(Context context) Checks if an automatic instrumentation should be suppressed with the provided Context.
| |
| suppressInstrumentation | back to summary |
|---|---|
| public static void suppressInstrumentation(Runnable runnable) Adds a Context boolean key that will allow to identify HTTP calls coming from OTel exporters. The key later be checked by an automatic instrumentation to avoid tracing OTel exporter's calls. | |