Skip to content

Document OTel metrics lifecycle methods - #39515

Draft
bm1549 wants to merge 3 commits into
masterfrom
brian.marks/otel-metrics-lifecycle
Draft

Document OTel metrics lifecycle methods#39515
bm1549 wants to merge 3 commits into
masterfrom
brian.marks/otel-metrics-lifecycle

Conversation

@bm1549

@bm1549 bm1549 commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

What does this PR do? What is the motivation?

Documents how short-lived Python, Java, and Node.js processes flush pending OTel custom metrics before exit.

The page clarifies that ForceFlush and Shutdown are Metrics SDK lifecycle operations, not Metrics API methods. It shows the official Python SDK surface and the equivalent Datadog extensions for Java and Node.js. It also documents language-specific completion, error, timeout, and export-pipeline behavior.

Merge readiness

  • Ready for merge

The companion Java, Node.js, and system-tests PRs must land before this documentation is merged.

For Datadog employees:

  • The branch follows the required <name>/<description> convention.
  • Run /review before requesting Documentation team review.

AI assistance

Used Codex to review the SDK contracts, update the examples, and run documentation checks.

Additional notes

Vale reports no errors or findings on changed lines. Existing warnings are on unchanged content.

Companion PRs: system-tests #7606, Java #12317, and Node.js #10023.

@github-actions

Copy link
Copy Markdown
Contributor

Preview links (active after the build_preview check completes)

Modified Files

@mabdinur
mabdinur force-pushed the brian.marks/otel-metrics-lifecycle branch from c0b50bc to 8e58cc5 Compare September 1, 2026 22:08

@mabdinur mabdinur left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed for consistency with the SDK lifecycle APIs. CI is green.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants