Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Stop implicitly emitting deprecated process runtime metrics#932

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
alexmojaki wants to merge4 commits intomain
base:main
Choose a base branch
Loading
fromalex/system-metrics-breaking-changes

Conversation

alexmojaki
Copy link
Contributor

@alexmojakialexmojaki commentedMar 14, 2025
edited
Loading

Builds on#930

These are breaking changes that should be included in the next major release.

@hyperlint-aiHyperlint AI
Copy link
Contributor

hyperlint-aibot commentedMar 14, 2025
edited
Loading

PR Change Summary

Updated system metrics instrumentation to stop emitting deprecated process runtime metrics and introduced new metric names for clarity.

  • Replaced deprecated metric 'process.runtime.cpu.utilization' with 'process.cpu.utilization'.
  • Removed deprecated metrics related to process runtime from the instrumentation configuration.
  • Clarified documentation regarding the metrics and their values.

Modified Files

  • docs/integrations/system-metrics.md

How can I customize these reviews?

Check out theHyperlint AI Reviewer docs for more information on how to customize the review.

If you just want to ignore it on this PR, you can add thehyperlint-ignore label to the PR. Future changes won't trigger a Hyperlint review.

Note specifically for link checks, we only check the first 30 links in a file and we cache the results for several hours (for instance, if you just added a page, you might experience this). Our recommendation is to addhyperlint-ignore to the PR to ignore the link check for this PR.

@cloudflare-workers-and-pagesCloudflare Workers and Pages
Copy link

cloudflare-workers-and-pagesbot commentedMar 14, 2025
edited
Loading

Deploying logfire-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit:b3aa472
Status: ✅  Deploy successful!
Preview URL:https://f614868b.logfire-docs.pages.dev
Branch Preview URL:https://alex-system-metrics-breaking.logfire-docs.pages.dev

View logs

@alexmojaki
Copy link
ContributorAuthor

I'll resolve merge conflicts after the base gets merged, or maybe not at all until we want to make a major release.

Base automatically changed fromalex/system-metrics-update tomainMarch 14, 2025 16:53
@alexmojakialexmojaki requested a review fromCopilotJuly 18, 2025 15:05
Copy link
Contributor

@CopilotCopilotAI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR removes deprecated process runtime metrics from the default system metrics configuration and replaces them with their newer equivalents. This is part of a major release breaking change to align with OpenTelemetry standards.

  • Removes deprecatedprocess.runtime.* metrics from default configurations
  • Replaces deprecated metrics with their modern equivalents (e.g.,process.runtime.cpu.utilizationprocess.cpu.utilization)
  • Maintains backward compatibility by allowing deprecated metrics to be explicitly requested

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

FileDescription
logfire/_internal/integrations/system_metrics.pyRemoves deprecated metrics from type definitions and configurations, adds logic to explicitly exclude them from FULL_CONFIG
tests/otel_integrations/test_system_metrics.pyUpdates test expectations to reflect removal of deprecated metrics and adds test for explicit deprecated metric usage
docs/integrations/system-metrics.mdUpdates documentation to remove references to deprecated metrics and simplify explanations
Comments suppressed due to low confidence (2)

tests/otel_integrations/test_system_metrics.py:72

  • The test only verifies that the deprecated metric name is collected, but doesn't verify the actual metric functionality or values. Consider adding assertions to verify the metric produces expected values.
    logfire.instrument_system_metrics({'process.runtime.cpu.utilization': None}, base=None)  # type: ignore

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

Copilot code reviewCopilotCopilot left review comments

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@alexmojaki

[8]ページ先頭

©2009-2025 Movatter.jp