Commit Graph

8315 Commits

Author SHA1 Message Date
Lauri Tulmin 2a2f7cd312
Make java.sql classes available to the agent and extensions (#7038)
Resolves
https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/7037
2022-11-03 11:42:28 -07:00
jason plumb 6f9ca0b80b
Ignore presto-jdbc shaded okhttp3 connection pool. (#7031)
This holds onto span context if not ignored. For vanilla `okhttp3` we
have an explicit ignore in the `OkHttp3IgnoredTypesConfigurer` class,
but `presto-jdbc` repackages okhttp3 when it shades it.
2022-11-03 11:04:57 +01:00
Trask Stalnaker 8642097424
Update jflex version (#7036)
instead of #7035
2022-11-03 11:35:28 +02:00
dependabot[bot] a8e5900244
Bump nullaway from 0.10.3 to 0.10.4 in /dependencyManagement (#7034) 2022-11-02 18:12:58 -07:00
jack-berg fce5a5f881
Add readme for runtime-metrics (#7012)
In the 10/27 java sig we discussed that it would be valuable to
enumerate the attributes reported for memory pool and gc metrics when
different gcs are used.

I've went ahead and added a readme for the runtime metrics which
includes detailed information on the attributes reported. Note that I
also have the same data for gc metrics added in #6964 and #6963, but
will wait to add until those PRs are merged.
2022-11-02 14:46:07 -07:00
OpenTelemetry Bot 07281d0537
Copy change log updates from release/v1.19.x (#7026)
Copy log updates from `release/v1.19.x`.
2022-11-02 09:56:21 +01:00
Trask Stalnaker 01c1f249ba
Add deprecation cycle for removed methods (#7020)
Methods were removed in #6892, which was backported to the 1.19.x branch
and included in the 1.19.1 release.
2022-11-01 12:25:28 -07:00
jack-berg 78e6744463
Add semantic conventions column to supported libraries doc (#6974)
Related to #6735.

Want to get buy in on the approach before going further.
2022-11-01 11:26:41 -07:00
Trask Stalnaker e5040f10e2
Update c3p0 muzzle config (#7017) 2022-11-01 11:25:29 -07:00
dependabot[bot] 7134856dd8
Bump com.gradle.enterprise from 3.11.2 to 3.11.3 (#7013) 2022-10-31 23:23:54 +00:00
dependabot[bot] 6bee632b8b
Bump nullaway from 0.10.2 to 0.10.3 in /dependencyManagement (#7014) 2022-10-31 15:38:08 -07:00
Ryan Dens c170ec5315
Upgrades Gradle Plugin Publish plugin (#7005)
- Updates the Gradle Plugin Publish plugin (attempted by #6663)
- Fixes #6628 by upgrading, as mentioned in
[gradle/gradle#19331](https://github.com/gradle/gradle/issues/19331)
2022-10-28 08:48:21 -07:00
Trask Stalnaker d0e2ec8f11
Update jib version (#7003)
#7001 should be automatically closed once this is merged and that PR is
rebased
2022-10-28 13:14:47 +03:00
Trask Stalnaker 892f8daea8
Remove unused plugin (#7002)
#6994 should get closed by this automatically after this is merged and
it is rebased
2022-10-28 13:13:16 +03:00
Aaron Ai 029ed3d98b
Implement producer part of RocketMQ new client instrumentation (#6884)
Fix #6764 . This pull request is about the producer part.
2022-10-27 19:25:22 -07:00
Trask Stalnaker cd95517ddc
Add OWASP dependency check (#6978)
See comment in the github action that explains why I think this is
helpful:

> the benefit of this over dependabot is that this also analyzes
transitive dependencies
> while dependabot (at least currently) only analyzes top-level
dependencies
2022-10-27 19:21:38 -07:00
Trask Stalnaker 56229fbdf7
Update dependencies (#7000) 2022-10-27 14:28:26 -07:00
Lauri Tulmin b0012b083b
okhttp: run our interceptor before other interceptors (#6997)
Resolves
https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/6909
If our interceptor runs before other interceptors then other
interceptors replacing the request won't affect our interceptor.
2022-10-27 12:45:02 -07:00
Aaron Ai d266a604ed
Add docs for gRPC library instrumentation (#6981)
Fixes #6980
2022-10-27 15:31:28 +02:00
Trask Stalnaker 1a16ef1bf9
Fix dependabot (#6986)
Follow-up to #6977 

Dependabot started failing after this because it was looking for all of
the relative includes that were inside of
`.github/project-root-duplicates/settings.gradle.kts`.

The solution that seems to work (I've tested on my fork) is to split
those includes out into a separate file, and `apply` that file.

Also fixes a busted markdown link (probably should have sent that in a
separate PR).

Resolves #6989
2022-10-27 13:31:38 +03:00
Trask Stalnaker 2642c116bd
Fix play smoke-test image publishing (#6988)
Resolves #6983
2022-10-27 13:30:52 +03:00
Trask Stalnaker 9d23fd620a
More dependabot (#6977)
Apply dependabot to `settings.gradle.kts` and `build.gradle.kts` in a
rather roundabout way (see README.md).

Currently built on top of #6975
2022-10-26 15:30:26 -07:00
Trask Stalnaker 28459d890c
Use component owners extension matching (#6966)
I have submitted a PR to add support for this to the component-owners
action: https://github.com/dyladan/component-owners/pull/14, but we can
use my fork for now.
2022-10-26 11:23:02 -07:00
Trask Stalnaker 0575ab4fe3
Remove usage of deprecated docker image (#6969) 2022-10-26 11:22:34 -07:00
Trask Stalnaker d7df94ad5b
Fix branch protection rules (#6973)
(in particular it was the dependabot rule that was not matching and so
dependabot was failing)
2022-10-26 11:22:16 -07:00
Trask Stalnaker 2778062528
Add gradle wrapper validation to required-status-checks (#6976)
So we can't accidentally merge a PR with this check failing.

Currently built on top of #6975
2022-10-26 11:16:20 -07:00
Trask Stalnaker 0ba68177e3
More reuse in github actions (#6975) 2022-10-26 09:09:48 -07:00
dependabot[bot] c677e231dc
Bump mockito-core from 4.8.0 to 4.8.1 in /dependencyManagement (#6971) 2022-10-25 21:10:45 +00:00
dependabot[bot] f033c38af4
Bump spring-boot-dependencies from 2.7.4 to 2.7.5 in /dependencyManagement (#6972) 2022-10-25 21:10:23 +00:00
dependabot[bot] 89b173c5ae
Bump gradle/wrapper-validation-action from 1.0.4 to 1.0.5 (#6970) 2022-10-25 14:07:27 -07:00
Aaron Ai 0a5fce8243
Add docs for library instrumentation of RocketMQ remoting-based client (#6960)
Fixes #6954

Co-authored-by: Fabrizio Ferri-Benedetti <fferribenedetti@splunk.com>
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2022-10-24 22:57:04 -07:00
Trask Stalnaker 7f5d747001
Remove unused gradle config (#6965)
(not sure, let's see what CI says?)
2022-10-24 21:02:46 -07:00
Trask Stalnaker b64706721a
Deprecate RocketMQ propagation setting (#6958)
I suspect that this was added in the original RocketMQ instrumentation
because it existed in the Kafka instrumentation, and not because there
was a need for it(?)

See #6957 for documentation on why it is needed in Kafka
2022-10-24 10:27:28 -07: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
Aaron Ai 3911cacfdc
Fix typos (#6961) 2022-10-24 09:06:01 -07:00
Trask Stalnaker 93175522d4
Rename kafka propagation setting and clarify behavior (#6957) 2022-10-24 08:49:48 -07:00
Trask Stalnaker c3f61e9d8d
Update supported libraries listing (#6959) 2022-10-24 08:49:32 -07:00
Trask Stalnaker f6766c7433
Remove unused test option (#6950) 2022-10-23 18:48:03 +00:00
Lauri Tulmin 44b02e51bd
Don't use rocketmq trace context (#6940)
Resolves
https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/6934
As described in the linked issue our usage of rocketmq trace context can
conflict with other hooks that also use `setMqTraceContext`.
2022-10-23 17:50:09 +00:00
Lauri Tulmin 5c2c86c65d
Run aws-sdk tests against 2.18.x (#6956)
Resolves
https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/6945
2022-10-23 10:33:48 -07:00
Trask Stalnaker 94e2248940
Use new semantic attribute constants (#6946) 2022-10-23 09:32:03 -07:00
Trask Stalnaker b7602c746b
Remove CodeQL workaround (#6949)
same as
https://github.com/open-telemetry/opentelemetry-java-contrib/pull/556
2022-10-23 09:29:28 -07:00
Lauri Tulmin 9b4d490e81
Fix metric unit in BufferPoolsTest (#6953) 2022-10-23 09:13:55 -07:00
Trask Stalnaker b2a4cf171f
Cap aws-sdk versions to fix testLatestDeps (#6944)
Opened issue #6945 to track removing the cap.

Resolves #6941 
Resolves #6943
2022-10-23 12:32:37 +03:00
Mateusz Rzeszutek 33b06889fa
Auto-detect service name based on the jar name (#6817)
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2022-10-22 18:10:21 -07:00
jack-berg 015dbf90b0
Add meter version to runtime metrics (#6874)
Runtime metrics doesn't include the meter version. This adds it from the
utility method in the instrumentation-api
`EmbeddedInstrumentationProperties.findVersion`. I know I can read the
properties file for this module, but its repetitive to implement that in
many places.
2022-10-22 18:09:44 -07:00
Trask Stalnaker d18a05b5a2
Add section to coding guidelines on Optional usage (#6894)
This was discussed a long while back, but never documented (and recently
came up in #6889)

Co-authored-by: Fabrizio Ferri-Benedetti <fferribenedetti@splunk.com>
2022-10-22 18:07:00 -07:00
Trask Stalnaker 9ce68fb937
Fix metric units (#6931)
Follow-up to #6930
2022-10-22 10:00:48 -07:00
Mateusz Rzeszutek 47cbdf3d60
Revert removing the mavenCentral repo from the muzzle check plugin (#6937)
Fixes #6932 
Replaces #6933 

@aaron-ai I finally understood what you meant in #6796 after seeing your
PR - initially I thought you were talking about some custom extension,
that's outside of this repository.
I added back the maven central fallback to the muzzle check plugin:
after investigating a bit, I found out that the repositories defined in
`settings.dependencyResolutionManagement` are not propagated at all (no
matter whether it's `afterEvaluate` or not) to the
`project.repositories`, and that the gradle issue
https://github.com/gradle/gradle/issues/17295 is still valid.
2022-10-21 14:42:53 +02:00
王展城 397a5a89b5
fix spring-webflux cast to PathPattern throws ClassCastException (#6872)
when
ServerWebExchange.getAttributes().put(HandlerMapping.BEST_MATCHING_PATTERN_ATTRIBUTE,
"path string type").
opentelemetry javaagent will throw exception.

[企业微信截图_76344afd-4541-482c-a90f-0606ad720351](https://user-images.githubusercontent.com/15957476/195615160-45559fb5-5e0c-4c25-8678-7d8aa603f346.png)
2022-10-21 10:35:33 +02:00