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
When using the {{es}} Java API client, spans for {{es}} operations are generated directly by the client’s built-in OpenTelemetry instrumentation.
86
+
87
+
Because the client owns the instrumentation, certain fields, such as the search request body reported as `span.db.statement`, are only captured when the {{es}} client’s OpenTelemetry options are turned on.
88
+
89
+
For more details on instrumentation settings in the {{es}} Java API client, refer to the [{{es}} Java client documentation](elasticsearch-java://reference/index.md).
90
+
91
+
### When this applies
92
+
93
+
You might need this configuration if you notice that `span.db.statement` is missing for {{es}} search operations and you use:
94
+
95
+
* {{es}} Java API client 8.x or 9.x
96
+
97
+
* EDOT Java SDK or another OpenTelemetry Java SDK
98
+
99
+
* The {{product.apm-agent-java}}
100
+
101
+
### Turn on search query capture
102
+
103
+
Set either one of the following {{es}} client instrumentation options:
0 commit comments