Skip to content

dataexcept 0.2.0

Choose a tag to compare

@github-actions github-actions released this 27 Sep 22:31
· 110 commits to main since this release
66f9ae4

Observability

  • operation_context() records where a failure happened: labels for
    filtering (system, component, operation) and identifiers of one run
    (request_id, job_id, correlation_id, trace_id, span_id), with the
    fields and rules of the Python package's OperationContext.
    operation_index_fields() returns the labels.
  • condition_to_event() and condition_to_event_json() write a failure event,
    the envelope plus its operation context, in the format of the Python
    package's exception_to_observability_event().
  • condition_to_otel_attributes() describes a condition as OpenTelemetry
    exception attributes with the Python package's names.
  • record_otel_exception() records a condition on an OpenTelemetry span, the
    active span of the otel package by default. It is fail-open, and its
    redacted attributes replace the unredacted message and stack trace the otel
    SDK would otherwise record. It also sets the span's status to error
    (set_status = TRUE), which stops the SDK from recording the same failure a
    second time, unredacted, when it escapes the span.
  • operation_context_from_otel() fills a context's trace_id and span_id
    from the active span, so failure events in logs correlate with traces.
  • otel and otelsdk join Suggests. Events and attributes are tested against
    output generated by the Python package, and recording against the real SDK.