Relative Content

Tag Archive for open-telemetryotel

Opentelemetry override or ignore client span error status

Using Opentelemetry, I am generating spans in a trace, and I have an external library that does a HTTP GET call (to Elasticsearch). This span is marked as “client” and it is marked as “error” by our otel agent. The library catches the exception and ignores it on certain http status codes, which we cannot control.
Is there something that can be done either to override that client error span status (with sdk or api) or to configure the agent so that it ignores these kind of span errors?