Skip to content

Document OTel metrics lifecycle methods - #39515

Draft
bm1549 wants to merge 1 commit into
masterfrom
brian.marks/otel-metrics-lifecycle
Draft

Document OTel metrics lifecycle methods#39515
bm1549 wants to merge 1 commit 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 can flush OTel custom metrics before exiting. It adds the Java and Node.js release requirements, shows ForceFlush and Shutdown examples, and documents the relevant timeout controls.

Merge readiness

  • Ready for merge

This stays unchecked while the matching Java, Node.js, and system-tests PRs are under review.

For Datadog employees:

  • ⚠️ Your branch name MUST follow the <name>/<description> convention and include the forward slash (/). If you've already created your PR with an incorrect branch name, please rename your branch and open a fresh PR.
  • 🤖 New: Comment with /review to run an automated check that catches common issues before a Documentation team member reviews your PR.

AI assistance

Used Codex to research the SDK behavior, draft the examples, and run local documentation checks. The examples were also exercised through short-lived test apps against a Datadog backend.

Additional notes

Vale reports no errors. Its remaining warnings and suggestions are on unchanged lines.

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

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.

1 participant