Skip to content

Add stored procedure information to Oracle DB receiver logs#44764

Merged
atoulme merged 20 commits intoopen-telemetry:mainfrom
akshays-19:Oracle_Stored_Procedures_v2
Dec 31, 2025
Merged

Add stored procedure information to Oracle DB receiver logs#44764
atoulme merged 20 commits intoopen-telemetry:mainfrom
akshays-19:Oracle_Stored_Procedures_v2

Conversation

@akshays-19
Copy link
Contributor

Description

oracledbreceiver currently fetches top queries and query_samples information. This PR will also fetch the stored procedure information as well. It will primarily fetch procedure id, name, owner and type.
Changes include:

  • Add PROGRAM_ID, OWNER, OBJECT_NAME, OBJECT_TYPE columns to oracleQueryMetricsAndTextSql.tmpl
  • Add OBJECT_ID column to oracleQuerySampleSql.tmpl
  • Add DBA_PROCEDURES join to both templates for stored procedure lookup
  • Add new attributes: oracledb.object_id, oracledb.object_owner, oracledb.object_name, oracledb.object_type
  • Update scraper.go to parse and pass stored procedure attributes
  • Update test data and expected outputs

@akshays-19 akshays-19 requested review from a team, atoulme, crobert-1 and dmitryax as code owners December 5, 2025 16:39
@github-actions github-actions bot added the first-time contributor PRs made by new contributors label Dec 5, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Dec 5, 2025

Welcome, contributor! Thank you for your contribution to opentelemetry-collector-contrib.

Important reminders:

A maintainer will review your pull request soon. Thank you for helping make OpenTelemetry better!

@atoulme
Copy link
Contributor

atoulme commented Dec 8, 2025

Please add a changelog and mark ready to review when this is no longer considered WIP.

@atoulme atoulme marked this pull request as draft December 8, 2025 23:09
@akshays-19 akshays-19 changed the title Add stored procedure information to Oracle DB receiver logs(WIP) Add stored procedure information to Oracle DB receiver logs Dec 15, 2025
@akshays-19 akshays-19 marked this pull request as ready for review December 15, 2025 18:35
@akshays-19
Copy link
Contributor Author

Please add a changelog and mark ready to review when this is no longer considered WIP.

added changelog, ready for review

Copy link
Member

@crobert-1 crobert-1 left a comment

Choose a reason for hiding this comment

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

Looks like the CI/CD failures are related to this PR, please review and update

@akshays-19 akshays-19 requested review from XSAM and crobert-1 December 18, 2025 13:34
@sv-splunk
Copy link
Contributor

LGTM

Copy link
Member

Choose a reason for hiding this comment

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

I'm pretty confused here about removing object_name and object_type, then adding procedure_name and procedure_type. Can you clarify, are these simply renames or is it more than that?

If we're renaming/removing attributes, we need to make it a breaking change in the changelog, and make it as clear as possible what's going on here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The topNquery did not have procedure related data earlier, so that is newly added.
In case of querySamples, we updated variables from object_ to procedure_ for consistency.

@atoulme atoulme merged commit 750d414 into open-telemetry:main Dec 31, 2025
190 checks passed
@otelbot
Copy link
Contributor

otelbot bot commented Dec 31, 2025

Thank you for your contribution @akshays-19! 🎉 We would like to hear from you about your experience contributing to OpenTelemetry by taking a few minutes to fill out this survey. If you are getting started contributing, you can also join the CNCF Slack channel #opentelemetry-new-contributors to ask for guidance and get help.

@github-actions github-actions bot added this to the next release milestone Dec 31, 2025
seongpil0948 pushed a commit to seongpil0948/opentelemetry-collector-contrib that referenced this pull request Jan 10, 2026
…emetry#44764)

#### Description
oracledbreceiver currently fetches top queries and query_samples
information. This PR will also fetch the stored procedure information as
well. It will primarily fetch procedure id, name, owner and type.
Changes include:

- Add PROGRAM_ID, OWNER, OBJECT_NAME, OBJECT_TYPE columns to
oracleQueryMetricsAndTextSql.tmpl
- Add OBJECT_ID column to oracleQuerySampleSql.tmpl
- Add DBA_PROCEDURES join to both templates for stored procedure lookup
- Add new attributes: oracledb.object_id, oracledb.object_owner,
oracledb.object_name, oracledb.object_type
- Update scraper.go to parse and pass stored procedure attributes
- Update test data and expected outputs

---------

Co-authored-by: Dmitry Anoshin <anoshindx@gmail.com>
Co-authored-by: Curtis Robert <crobert@splunk.com>
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.

8 participants