Effect CommunityEC
Effect Community8mo ago
1 reply
gl0ck

Attaching SpanID and TraceID to Logger from Logger.ts Similar to OtlpLogger.ts

is there a way to have the logger from Logger.ts (https://github.com/Effect-TS/effect/blob/a2d57c9ac596445009ca12859b78e00e5d89b936/packages/opentelemetry/src/Logger.ts#L29-L61) attach the spanid and traceid from the context like the logger from OtlpLogger.ts (https://github.com/Effect-TS/effect/blob/a2d57c9ac596445009ca12859b78e00e5d89b936/packages/opentelemetry/src/OtlpLogger.ts#L130-L133) does?

i would use the native Otlp layer, but the OtlpLogger only exports json over http and the provider i'm using only supports proto over http.
Was this page helpful?