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

Do not shade opentelemetry in JDBC driver #23458

Merged
merged 7 commits into from
Sep 17, 2024

Conversation

wendigo
Copy link
Contributor

@wendigo wendigo commented Sep 17, 2024

Fixes #21104 #21689 #18348

Description

Additional context and related issues

Also related to #23452

Release notes

( ) This is not user-visible or is docs only, and no release notes are required.
(x) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text:

# Section
* Fix some things. ({issue}`issuenumber`)

OpenTelemetry should be provided by the execution environment that wants to instrument Trino JDBC driver
rather than by the driver itself.
@cla-bot cla-bot bot added the cla-signed label Sep 17, 2024
@github-actions github-actions bot added the jdbc Relates to Trino JDBC driver label Sep 17, 2024
@wendigo wendigo force-pushed the serafin/do-not-shade-opentelemetry branch from 7b56488 to 0dfa85f Compare September 17, 2024 10:57
@wendigo wendigo requested a review from mosabua September 17, 2024 11:04
@wendigo
Copy link
Contributor Author

wendigo commented Sep 17, 2024

This can be used to install tracing driver using:

DriverManager.registerDriver(new TracingTrinoDriver(openTelemetry));

@wendigo
Copy link
Contributor Author

wendigo commented Sep 17, 2024

@electrum FYI

@wendigo wendigo requested a review from electrum September 17, 2024 12:45
@wendigo wendigo dismissed mosabua’s stale review September 17, 2024 15:56

JDBC works as before - OTEL dependencies not needed

Copy link
Member

@mosabua mosabua left a comment

Choose a reason for hiding this comment

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

We will probably follow up with some documentation but that is not critical for merging this PR

@wendigo
Copy link
Contributor Author

wendigo commented Sep 17, 2024

@electrum do you want to take a look?

@wendigo wendigo merged commit fd6208e into master Sep 17, 2024
55 checks passed
@wendigo wendigo deleted the serafin/do-not-shade-opentelemetry branch September 17, 2024 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed jdbc Relates to Trino JDBC driver
Development

Successfully merging this pull request may close these issues.

Trino JDBC 440+ is not compatible with OpenTelemetry Java instrumentation < 2.1.0
4 participants