Commit Graph

86 Commits

Author SHA1 Message Date
Gregor Zeitlinger e2cce4cc16
Db client error type for JDBC (#13331)
Co-authored-by: Jay DeLuca <jaydeluca4@gmail.com>
2025-03-31 05:40:16 -07:00
renovate[bot] b1eb1fd3d9
fix(deps): update dependency io.opentelemetry.semconv:opentelemetry-semconv to v1.30.0-rc.1 (#13116)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Lauri Tulmin <ltulmin@splunk.com>
2025-01-30 14:18:43 -08:00
Lauri Tulmin 467dfc0529
Instrument jdbc batch queries (#12797)
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2025-01-16 14:30:10 -08:00
Trask Stalnaker d348029486
Remove unused class (#12963) 2024-12-24 12:29:22 +02:00
Gregor Zeitlinger 3fd27aa4d1
add db client metrics for JDBC, vertx, r2dbc, cassandra, add tests (#12818) 2024-12-02 09:26:41 -08:00
Trask Stalnaker 74d07f1d36
Database stable semconv tests and fixes (#12601) 2024-11-10 09:44:57 +02:00
Trask Stalnaker 2371589ec5
Statically import semconv constants in tests (#12575) 2024-11-06 08:17:57 -08:00
Helen 61c99cf73d
Implement some of the stable database semantic conventions (#11575)
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2024-10-29 10:32:37 -07:00
renovate[bot] 855c7a0fad
fix(deps): update dependency io.opentelemetry.semconv:opentelemetry-semconv to v1.28.0-alpha (#12292)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Lauri Tulmin <ltulmin@splunk.com>
2024-10-28 10:55:06 -07:00
Lauri Tulmin ca44975c3b
Improve whitespace handling in oracle jdbc url parser (#12512) 2024-10-24 10:58:30 -07:00
Jay DeLuca a1c37281c9
Fix derby directory connection string parser (#12479) 2024-10-21 07:58:49 -07:00
jason plumb d15927a8bc
Update shadow plugin to new version and coordinates (#11979) 2024-08-09 09:40:04 +03:00
Jay DeLuca 687cffe01f
Add support for informix connection string parsing in jdbc instrumentation (#11542)
Co-authored-by: Lauri Tulmin <ltulmin@splunk.com>
2024-06-12 07:32:25 -07:00
Lauri Tulmin a52561f16f
Remove outdated todo (#11544) 2024-06-10 07:33:12 -07:00
Lauri Tulmin b2b249a3bb
Fix build (#11371) 2024-05-16 15:01:55 +03:00
Jay DeLuca 59e6fd0531
Add tests for sap db missed in migration (#11367) 2024-05-16 10:30:59 +03:00
Trask Stalnaker 68ebe00c8b
Revert "Remove db.connection_string (#11089)" (#11366) 2024-05-16 10:30:34 +03:00
Lauri Tulmin 3a9972b16f
Remove incubating semconv dependency from library instrumentation (#11324) 2024-05-15 11:44:21 -07:00
Jay DeLuca 31820ac023
Convert jdbc library tests from groovy to java (#11178) 2024-04-22 18:14:03 -07:00
Lauri Tulmin 7ff3b23f10
Remove db.connection_string (#11089) 2024-04-12 09:09:25 +03:00
SylvainJuge 955470a63a
Semconv 1.25.0 migration (#10983)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-09 11:25:52 -07:00
xiangtianyu 42ba962aa8
fix: invalid semantic conventions doc url fix (#10954) 2024-04-08 10:49:42 +03:00
Lauri Tulmin d73962834a
Return wrapped connection from Statement.getConnection (#10554) 2024-02-15 07:54:18 -08:00
Mateusz Rzeszutek 65ee9510f5
Rename the `instrumentation-api-semconv` module into `instrumentation-api-incubator` (#9985) 2023-12-04 08:28:10 +01:00
Mateusz Rzeszutek dc81aae72f
Move HTTP classes to instrumentation-api (#9977) 2023-12-01 12:04:06 +01:00
Mateusz Rzeszutek 7cd705b555
Remove old HTTP semconv code (#9968) 2023-11-29 08:04:31 -08:00
Mateusz Rzeszutek 280c1ea4c1
Enable stable HTTP semconv by default (#9925) 2023-11-28 10:43:51 -08:00
Lauri Tulmin c973b9ebd4
Fix parsing port from mariadb jdbc url (#9863) 2023-11-14 07:17:10 -08:00
Jean Bisutti e6ec4f52ef
Make the JDBC driver config work with the OTel starter (#9625)
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2023-10-23 09:59:36 -07:00
Hannah Chan 2a554bd153
Add JdbcTelemetry and JdbcTelemetryBuilder (#9685) 2023-10-17 07:11:44 -07:00
Trask Stalnaker 3b77cc4b2d
Semconv 1.21 (#9408)
Co-authored-by: Lauri Tulmin <ltulmin@splunk.com>
2023-09-13 19:20:23 +00:00
Yuya Ebihara 2fb000496e
Return default DbInfo when connection is null (#9413) 2023-09-08 08:50:58 -07:00
Mateusz Rzeszutek d140cf91f2
Add support for the AWS Secrets Manager JDBC URLs (#9335) 2023-08-29 11:54:22 -07:00
Mateusz Rzeszutek 65451b6529
Deprecate `NetClientAttributesExtractor` (#9165) 2023-08-16 11:21:10 +02:00
Mateusz Rzeszutek 37531a0720
Fill additional db.* attributes on DataSource#getConnection() (#8966) 2023-07-19 16:06:16 -07:00
Jean Bisutti 22bd9f59df
Convert some JDBC tests from Groovy to Java (#8511)
Co-authored-by: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com>
2023-06-13 11:53:30 -07:00
Mateusz Rzeszutek cde2e70148
Implement new stable server semantic conventions (#8663) 2023-06-13 11:07:59 +02:00
Jean Bisutti 9c58284923
Update the JDBC driver documentation (#8512) 2023-05-17 10:19:10 -07:00
dependabot[bot] 3122897b2e
Bump errorProneVersion from 2.18.0 to 2.19.0 (#8459)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Lauri Tulmin <ltulmin@splunk.com>
2023-05-10 09:49:55 -07:00
Mateusz Rzeszutek e3944a53a5
Make net.transport an optional attribute (#8279) 2023-04-20 08:14:03 -07:00
Trask Stalnaker 70cd8464e2
Fix possible NPE (#8199)
this is a follow-up to #7043

I tried to add a test when that PR was opened:

*
d2c6399a6e

but it doesn't really verify anything, since the NPE is throw/caught and
same behavior occurs
2023-04-03 09:24:14 +02:00
Lauri Tulmin 0a311a1c3e
Remove password from db.user parsed from JDBC url (#8106)
Resolves
https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/8105
2023-03-22 11:56:55 +01:00
Lauri Tulmin c6adaa35de
Cache DbInfo in OpenTelemetryDataSource (#8025)
Resolves
https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/7984
2023-03-13 13:10:11 +01:00
Fran Pregernik 1d3752f21b
Allow JDBC autoinstrumentation to use a custom OpenTelemetry instance to be more DI (e.g. Spring Boot) friendly (#7697)
Related to issue
https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/7677
2023-02-08 17:46:13 +01:00
Mateusz Rzeszutek e1895e548c
Rename all methods in all Getters to use the `get*()` naming scheme (#7619)
Resolves #6562

This PR only contains renames; the actual content is in the `*Getter`
interfaces, the rest of changes is just IntelliJ doing its job.
2023-01-23 09:28:11 +00:00
Mateusz Rzeszutek 0223dc3a28
Fix concurrency issue in OpenTelemetryDriver (#7628)
Fixes #7621
2023-01-20 13:28:22 +01:00
Michal Vavřík 6207887479
OpenTelemetryDriver don't require DriverManager for underlying drivers (#7089)
closes: #7028

For reasons explained in the linked issue, it might be handy to register
drivers directly against `OpenTelemetryDriver` rather than against
`DriverManager`. I decided to also go with static registry as drivers
are often instantiated connect pools (like Agroal) and it could be
difficult to use instance varibles. This PR adds additional `Driver`
collection where drivers can be registered. If driver is registered both
with `OpenTelemtryDriver` and `DriverManager`, drivers registered with
`OpenTelemetryDriver` are preferred.
2022-11-28 14:46:22 -08:00
Aaron Ai 2d7395c44b
Introduce markdown lint check (#7175)
Fixes #7129
2022-11-16 20:48:42 -08:00
Trask Stalnaker 5345c87680
End groovy files with newline (#7127) 2022-11-10 12:21:55 +01:00
Trask Stalnaker 71b3e3e027
Library doc cleanup (#6948)
Related to #6947, but just cleans up the library module doc that already
existed (mostly for uniformity). Does not introduce any new doc.
2022-10-24 10:26:21 -07:00