package awskit

  1. Overview
  2. Docs

Module Error.Unsafe_diagnosticsSource

Explicit escape hatch for raw diagnostic material.

Values exposed by this module may contain service response bodies, authorization headers, security tokens, signatures, cookies, credentials, or other secret-bearing data. Do not use these functions for application logs or exception messages.

Sourceval service_headers : t -> (string * string) list option

Raw service headers when t is a service error.

Sourceval service_body : t -> string option

Raw service response body when t is a service error and the producer supplied it.

Sourceval to_sexp_unredacted : t -> Base.Sexp.t

Render an unredacted S-expression diagnostic.