Skip to content

Add process.paging.faults and process.uptime runtime metrics#653

Open
Nevay wants to merge 3 commits into
open-telemetry:mainfrom
Nevay:feature/additional-runtime-metrics
Open

Add process.paging.faults and process.uptime runtime metrics#653
Nevay wants to merge 3 commits into
open-telemetry:mainfrom
Nevay:feature/additional-runtime-metrics

Conversation

@Nevay

@Nevay Nevay commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Adds additional recommended process metrics:

Follow-up to #645, cc @intuibase

@Nevay Nevay requested a review from a team as a code owner July 8, 2026 20:04
@codecov

codecov Bot commented Jul 8, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 97.50000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 81.17%. Comparing base (370a207) to head (fbaae9b).

Files with missing lines Patch % Lines
...c/Metrics/Runtime/src/GarbageCollectionMetrics.php 96.66% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##               main     #653      +/-   ##
============================================
+ Coverage     81.14%   81.17%   +0.02%     
- Complexity     1478     1480       +2     
============================================
  Files           103      103              
  Lines          5586     5599      +13     
============================================
+ Hits           4533     4545      +12     
- Misses         1053     1054       +1     
Flag Coverage Δ
Context/Swoole 0.00% <ø> (ø)
Exporter/Instana 49.80% <ø> (ø)
Instrumentation/AwsSdk 82.14% <ø> (ø)
Instrumentation/CakePHP 20.42% <ø> (ø)
Instrumentation/CodeIgniter 79.31% <ø> (ø)
Instrumentation/Curl 86.88% <ø> (ø)
Instrumentation/Doctrine 92.82% <ø> (ø)
Instrumentation/ExtAmqp 88.80% <ø> (ø)
Instrumentation/Guzzle 76.25% <ø> (ø)
Instrumentation/HttpAsyncClient 78.94% <ø> (ø)
Instrumentation/HttpConfig 28.76% <ø> (ø)
Instrumentation/IO 0.00% <ø> (ø)
Instrumentation/Magento2 88.12% <ø> (ø)
Instrumentation/MongoDB 76.84% <ø> (ø)
Instrumentation/OpenAIPHP 86.71% <ø> (ø)
Instrumentation/PostgreSql 91.36% <ø> (ø)
Instrumentation/Psr14 77.41% <ø> (ø)
Instrumentation/Psr15 89.74% <ø> (ø)
Instrumentation/Psr16 97.43% <ø> (ø)
Instrumentation/Psr18 79.41% <ø> (ø)
Instrumentation/Psr6 97.56% <ø> (ø)
Instrumentation/ReactPHP 99.41% <ø> (ø)
Instrumentation/Session 94.28% <ø> (ø)
Instrumentation/Slim 84.21% <ø> (ø)
Metrics/Runtime 90.62% <97.50%> (+0.09%) ⬆️
Propagation/CloudTrace 90.69% <ø> (ø)
Propagation/Instana 98.07% <ø> (ø)
Propagation/ServerTiming 94.73% <ø> (ø)
Propagation/TraceResponse 94.73% <ø> (ø)
ResourceDetectors/Azure 91.66% <ø> (ø)
ResourceDetectors/DigitalOcean 100.00% <ø> (ø)
Sampler/Xray 78.38% <ø> (ø)
Shims/OpenTracing 92.99% <ø> (ø)
SqlCommenter 95.58% <ø> (ø)
Utils/Test 87.79% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/Metrics/Runtime/src/CpuMetrics.php 100.00% <100.00%> (ø)
...c/Metrics/Runtime/src/GarbageCollectionMetrics.php 98.43% <96.66%> (-1.57%) ⬇️

Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 370a207...fbaae9b. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Nevay Nevay force-pushed the feature/additional-runtime-metrics branch from 851be40 to fbaae9b Compare July 8, 2026 20:12
'Cumulative time spent freeing memory during GC',
);
$processUptime = $meter->createObservableGauge(
'process.uptime',

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
'process.uptime',
'php.uptime',

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