Open
Description
Integration
sentry
Java Version
Version
8
Steps to Reproduce
Use our Spring Boot 3 OpenTelemetry sample with our sentry-opentelemetry-agent
and cause a transaction, e.g. via HTTP GET /person/10
Expected Result
Actual thread where the transaction was started is sent to Sentry.
We should transfer the OpenTelemetry span attributes for thread info over.
Actual Result
A background thread (OpenTelemetry SpanProcessor thread) is sent to Sentry.
"trace": {
"trace_id": "849956b3cb2ead7db1a5bbbf9db192d4",
"span_id": "4d9370b69f588d90",
"op": "ui.load",
"status": "ok",
"origin": "manual",
"data": {
"otel.instrumentation.name": "sentry-opentelemetry",
"otel.kind": "INTERNAL",
"otel.instrumentation.version": "8.7.0",
"thread.name": "BatchSpanProcessor_WorkerThread-1",
"thread.id": "16"
}
}
Note that the span attributes record the correct thread information:
"attributes": {
"thread.name": "AWT-EventQueue-0",
"thread.id": 23
}