Skip to content

Enhanced plan details for oracle - #49279

Merged
atoulme merged 9 commits into
open-telemetry:mainfrom
sv-splunk:enhanced_plan_details_for_oracle
Jul 2, 2026
Merged

Enhanced plan details for oracle#49279
atoulme merged 9 commits into
open-telemetry:mainfrom
sv-splunk:enhanced_plan_details_for_oracle

Conversation

@sv-splunk

@sv-splunk sv-splunk commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Description

The Oracle DB receiver currently queries V$SQL_PLAN to obtain optimizer-estimated plan nodes for top queries. Oracle also provides V$SQL_PLAN_STATISTICS_ALL, a superset view that includes actual runtime statistics per plan node when statistics were gathered during execution.

This PR switches the table to V$SQL_PLAN_STATISTICS_ALL and adds the below 7 stats into plan details.

-   OUTPUT_ROWS,
-   LAST_OUTPUT_ROWS,
-   LAST_ELAPSED_TIME,
-   LAST_CR_BUFFER_GETS,
-   LAST_CU_BUFFER_GETS,
-   STARTS,
-   LAST_STARTS

Link to tracking issue

Fixes #49329

Testing

Test templates updated

Documentation

Updated

Authorship

  • I, a human, wrote this pull request description myself.

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

Looks good!

@sv-splunk
sv-splunk marked this pull request as ready for review June 25, 2026 15:44
@sv-splunk
sv-splunk requested review from a team, atoulme, crobert-1 and dmitryax as code owners June 25, 2026 15:44
Comment thread .chloggen/oracledb_enhanced_plan_details.yaml Outdated
Comment thread receiver/oracledbreceiver/scraper_test.go Outdated
Comment thread .chloggen/oracledb_enhanced_plan_details.yaml Outdated
Comment thread receiver/oracledbreceiver/README.md
Comment thread .chloggen/oracledb_enhanced_plan_details.yaml Outdated
@sv-splunk

Copy link
Copy Markdown
Contributor Author

@crobert-1 Thanks for the review. I have addressed all your comments. Please check!

@atoulme
atoulme merged commit 46815d0 into open-telemetry:main Jul 2, 2026
133 checks passed
tommyers-elastic pushed a commit to tommyers-elastic/opentelemetry-collector-contrib that referenced this pull request Jul 3, 2026
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
The Oracle DB receiver currently queries `V$SQL_PLAN` to obtain
optimizer-estimated plan nodes for top queries. Oracle also provides
`V$SQL_PLAN_STATISTICS_ALL`, a superset view that includes actual
runtime statistics per plan node when statistics were gathered during
execution.

This PR switches the table to `V$SQL_PLAN_STATISTICS_ALL` and adds the
below 7 stats into plan details.

  ```
-   OUTPUT_ROWS,
-   LAST_OUTPUT_ROWS,
-   LAST_ELAPSED_TIME,
-   LAST_CR_BUFFER_GETS,
-   LAST_CU_BUFFER_GETS,
-   STARTS,
-   LAST_STARTS
```

<!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes open-telemetry#49329

<!--Describe what testing was performed and which tests were added.-->
#### Testing
Test templates updated

<!--Describe the documentation added.-->
#### Documentation
Updated

<!--Authorship attestation. See AGENTS.md for details. AI agents must not check this box on behalf
of the user; the human author must check it themselves before the PR is ready for review.-->
#### Authorship

- [x] I, a human, wrote this pull request description myself.

<!--Please delete paragraphs that you did not use before submitting.-->
akhileshsingh85 pushed a commit to akhileshsingh85/opentelemetry-collector-contrib that referenced this pull request Jul 6, 2026
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
The Oracle DB receiver currently queries `V$SQL_PLAN` to obtain
optimizer-estimated plan nodes for top queries. Oracle also provides
`V$SQL_PLAN_STATISTICS_ALL`, a superset view that includes actual
runtime statistics per plan node when statistics were gathered during
execution.

This PR switches the table to `V$SQL_PLAN_STATISTICS_ALL` and adds the
below 7 stats into plan details.

  ```
-   OUTPUT_ROWS,
-   LAST_OUTPUT_ROWS,
-   LAST_ELAPSED_TIME,
-   LAST_CR_BUFFER_GETS,
-   LAST_CU_BUFFER_GETS,
-   STARTS,
-   LAST_STARTS
```

<!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes open-telemetry#49329

<!--Describe what testing was performed and which tests were added.-->
#### Testing
Test templates updated

<!--Describe the documentation added.-->
#### Documentation
Updated

<!--Authorship attestation. See AGENTS.md for details. AI agents must not check this box on behalf
of the user; the human author must check it themselves before the PR is ready for review.-->
#### Authorship

- [x] I, a human, wrote this pull request description myself.

<!--Please delete paragraphs that you did not use before submitting.-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enhance Oracle SQL query plan details with runtime execution statistics

5 participants