Convert a log entry to OpenTelemetry-compatible semantic conventions.
Maps HTTP log entries to OpenTelemetry semantic conventions (HTTP span attributes). Produces span attributes compatible with OpenTelemetry specification v1.21.0+.
Output format:
A log entry from HTTPLogger
OpenTelemetry-compliant span attributes
const spanAttrs = toOTelSpan(responseEntry);// { "http.request.id": "req-123", "http.request.method": "GET", "url.full": "https://api.example.com", ... } Copy
const spanAttrs = toOTelSpan(responseEntry);// { "http.request.id": "req-123", "http.request.method": "GET", "url.full": "https://api.example.com", ... }
Convert a log entry to OpenTelemetry-compatible semantic conventions.
Maps HTTP log entries to OpenTelemetry semantic conventions (HTTP span attributes). Produces span attributes compatible with OpenTelemetry specification v1.21.0+.
Output format: