Skip to content

voiage.c15_otel.build_otlp_log_request

build_otlp_log_request([positional or keyword] message: str = None, [positional or keyword] correlation: CorrelationContext = None, [keyword-only] attributes: Mapping[str, object] | None = None, [keyword-only] observed_time_unix_nano: int | None = None) -> dict[str, object]

Build a privacy-screened OTLP/HTTP JSON log request.

Parameters:

  • message str
  • correlation CorrelationContext
  • attributes Mapping[str, object] | None (default: None)
  • observed_time_unix_nano int | None (default: None)

Returns: dict[str, object]