Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(dbapi2): include object name in procedure call spans #1938

Conversation

anderssonjohan
Copy link
Contributor

What does this pull request do?

  • include object name in span name when calling procedures
  • consistently use span action exec when calling procedures

Related issues

Closes #1937

Copy link

cla-checker-service bot commented Nov 24, 2023

💚 CLA has been signed

@github-actions github-actions bot added agent-python community Issues opened by the community triage Issues awaiting triage labels Nov 24, 2023
@basepi
Copy link
Contributor

basepi commented Nov 28, 2023

Please merge/rebase this against main to get the tests passing. It appears you have pushes from maintainers disabled.

Copy link
Contributor

@basepi basepi left a comment

Choose a reason for hiding this comment

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

One question below. But overall this looks great!

@anderssonjohan
Copy link
Contributor Author

Thanks for the comments, I'll add the tests.

Regarding the access I don't see a checkbox.. probably because of the cross-org issue mentioned here: https://github.com/orgs/community/discussions/5634

@anderssonjohan anderssonjohan force-pushed the 1937-action-and-object-name-for-execute-statements branch from 72a0933 to 4cd8fe1 Compare November 29, 2023 19:52
Include the name of the procedure in the name of the span.
Examples:
CALL procedure()
EXECUTE procedure

Issue: elastic#1937
Set span action to exec instead of query for procedure calls
not using callproc().

Issue: elastic#1937
@anderssonjohan anderssonjohan force-pushed the 1937-action-and-object-name-for-execute-statements branch from 4cd8fe1 to 4bd91b0 Compare November 29, 2023 20:02
@basepi basepi enabled auto-merge (squash) December 1, 2023 00:10
@basepi
Copy link
Contributor

basepi commented Dec 1, 2023

@elasticmachine, run elasticsearch-ci/docs

@basepi basepi merged commit 1654dd5 into elastic:main Dec 1, 2023
@anderssonjohan
Copy link
Contributor Author

Example output when trying this branch in a real app:

Screenshot 2023-12-01 at 14 02 04

Action set to exec:

Screenshot 2023-12-01 at 14 04 23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
agent-python community Issues opened by the community triage Issues awaiting triage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dbapi2 span does not include object name when calling a procedure
2 participants