Closed
Description
OpenTelemetry gRPC spans sent to the APM Server OTLP endpoint result in a derived transaction with a transaction.type
set to unknown
when the spans originate from the Java OpenTelemetry Agent.
APM Server version (apm-server version
):
8.10.4
OTEL Java Agent version:
2.10.0
Expected Behavior:
Should have a transaction type of request
.
Steps to reproduce:
Instrument an java application using the OTEL java agent - opentelemetry-java-instrumentation
Span Context from OTEL collector
collector-1 | Span #0
collector-1 | Trace ID : 680b29fae4704be1521db3b5ad307802
collector-1 | Parent ID :
collector-1 | ID : c920c8bc47f87dca
collector-1 | Name : PATCH /hello
collector-1 | Kind : Server
collector-1 | Start time : 2024-12-13 09:43:50.941603596 +0000 UTC
collector-1 | End time : 2024-12-13 09:43:58.284177181 +0000 UTC
collector-1 | Status code : Unset
collector-1 | Status message :
collector-1 | Attributes:
collector-1 | -> url.scheme: Str(http)
collector-1 | -> thread.name: Str(tomcat-handler-0)
collector-1 | -> network.protocol.version: Str(1.1)
collector-1 | -> network.peer.port: Int(43701)
collector-1 | -> user_agent.original: Str(Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0)
collector-1 | -> http.route: Str(/hello)
collector-1 | -> server.port: Int(8080)
collector-1 | -> http.request.method: Str(PATCH)
collector-1 | -> url.path: Str(/hello)
collector-1 | -> thread.id: Int(50)
collector-1 | -> network.peer.address: Str(192.168.65.1)
collector-1 | -> server.address: Str(localhost)
collector-1 | -> client.address: Str(192.168.65.1)
collector-1 | -> http.response.status_code: Int(200)