Skip to content

tracing: provider shutdown/flush, optional sampler, error status (add-ons for #61) - #62

Merged
christopherpcosta merged 2 commits into
tracingfrom
dev/chcost/tracing-review
Jun 11, 2026
Merged

tracing: provider shutdown/flush, optional sampler, error status (add-ons for #61)#62
christopherpcosta merged 2 commits into
tracingfrom
dev/chcost/tracing-review

Conversation

@christopherpcosta

Copy link
Copy Markdown
Contributor

Builds on #61 (merge into the tracing branch to fold in). Additions to OpenTelemetryTracer:

  • shutdown()provider.forceFlush() then provider.shutdown() — graceful-shutdown flush so the final batch isn't dropped (keeps the provider lifecycle formal).
  • optional sampler in OpenTelemetryTracerOptions — head sampling as a first-class knob without forcing it (falls back to SDK/env default when omitted).
  • ERROR span status + recordException on the trace/traceP/traceF failure paths so failed ops are distinguishable in the backend.

@christopherpcosta
christopherpcosta merged commit 36725f5 into tracing Jun 11, 2026
1 check passed
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant