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
{{ message }}
Repository navigation
bug: [P2] OpenTelemetry HTTP SERVER spans are converted to outbound calls #78
When an HTTP server span in OTLP JSON is converted, the operation that served the HTTP request is recorded as access:"call". The expected result is access:"serve".
OpenTelemetry's SpanKind specification distinguishes SERVER spans, which handle incoming requests, from CLIENT spans, which represent outgoing requests. The OTLP definitions assign SERVER=2 and CLIENT=3 (distinct from SDK-specific enum values).
Reproduction
Run the following after building. This can be verified by passing input to the conversion function; no HTTP traffic is required.
Both kind:2 and kind:"SPAN_KIND_SERVER" produced {kind:"http",access:"call",selector:"/users",...}. The CLIENT inputs used for comparison (3 and SPAN_KIND_CLIENT) also produced call.
Cause and fix requirements
SpanLike/accessFromSpan does not read span.kind. normalizeOperation looks for the strings serve/server in the HTTP method GET, so server operations also become call. Direction should be determined from the standard span kind while preserving support for existing explicit CellFence operation settings.
Validation scope
The entire adapter source at the affected commit was transpiled in memory using TypeScript 5.9.3, and the four input variants above were passed to the public conversion function. No files were created and no actual network traffic was generated. The full test suite was not run.
If you find this repository useful, please consider giving it a star.
changed the title [-]bug: [P2] OpenTelemetryのHTTP SERVER spanが外向きcallに変換される[/-][+]bug: [P2] OpenTelemetry HTTP SERVER spans are converted to outbound calls[/+]on Sep 8, 2026
Activity
[-]bug: [P2] OpenTelemetryのHTTP SERVER spanが外向きcallに変換される[/-][+]bug: [P2] OpenTelemetry HTTP SERVER spans are converted to outbound calls[/+]