hs-opentelemetry-propagator-w3c

Trace propagation via HTTP headers following the w3c tracestate spec.

https://github.com/iand675/hs-opentelemetry#readme

Stackage Nightly 2025-10-11:0.1.0.0
Latest on Hackage:0.1.0.0

See all snapshots hs-opentelemetry-propagator-w3c appears in

BSD-3-Clause licensed by Ian Duncan, Jade Lovelace
Maintained by [email protected]
This version can be pinned in stack with:hs-opentelemetry-propagator-w3c-0.1.0.0@sha256:2d8d324e61e15953d6fa405eee2f674746b5ea35a74ff9113388f0dca21e9f23,2012

Module documentation for 0.1.0.0

hs-opentelemetry-propagator-w3c

Changes

Changelog for hs-opentelemetry-propagator-w3c

Unreleased

0.1.0.0

Added

  • Complete W3C tracestate header parsing and encoding support
  • tracestateParser for parsing W3C tracestate headers according to specification
  • encodeTraceState function for serializing TraceState to W3C format
  • encodeTraceStateFull for serializing complete TraceState without HTTP header limits
  • encodeTraceStateMultiple for splitting TraceState into multiple headers with size constraints
  • decodeTraceStateMultiple for combining multiple tracestate headers per RFC7230
  • Proper validation of tracestate keys and values per W3C spec
  • Support for up to 32 tracestate entries as per specification
  • Multi-tenant key format support (tenant@vendor)
  • Automatic removal of oversized entries (>128 chars) as per W3C truncation guidance
  • RFC7230-compliant header field combining with comma separation
  • Comprehensive test coverage for tracestate functionality

Changed

  • encodeSpanContext now includes tracestate in returned tuple
  • decodeSpanContext now properly decodes and validates tracestate headers

Dependencies

  • Added text dependency for tracestate text processing

0.0.1.4

  • Support newer dependencies

0.0.1.1

  • Update to hs-opentelemetry-api == 0.0.2.*

0.0.1.0

  • Initial release