Skip to content

Document OTel metrics shutdown - #39515

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

Document OTel metrics shutdown#39515
bm1549 wants to merge 4 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 shut down OTel custom metrics after recording is complete.

The examples use the provider returned by the global OpenTelemetry API. Python uses the OpenTelemetry SDK method; Java and Node.js use Datadog provider extensions.

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 align the examples with the SDK contracts and run documentation checks.

Additional notes

Vale reports no errors or findings on changed 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

@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.

@mabdinur mabdinur changed the title Document OTel metrics lifecycle methods Document OTel metrics shutdown Sep 8, 2026
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