Commit Graph

182 Commits

Author SHA1 Message Date
Gregor Zeitlinger cc34116f48
support dynamic attach (#13499)
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2025-03-27 09:38:49 +02:00
renovate[bot] df22b0f796
fix(deps): update guava packages to v33.4.0-jre (minor) (#12900)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Lauri Tulmin <ltulmin@splunk.com>
2024-12-17 13:04:59 +02:00
Jay DeLuca 712e0a7acc
Remove todo assignment (#12884) 2024-12-12 12:39:33 -08:00
Lauri Tulmin 792b6da159
Shade testing protobuf dependency (#12782)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-25 09:25:05 +02:00
Trask Stalnaker 905c274009
Update quarkus smoke test image (#12567) 2024-11-06 07:11:06 -08: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
Trask Stalnaker 54e142da2c
Add Java 23 to smoke test matrix (#12451) 2024-10-24 08:26:04 +03:00
Trask Stalnaker 8de4c25916
Run Play smoke tests against Java 17 and 21 (part 2) (#12461) 2024-10-18 09:07:24 -07:00
Lauri Tulmin ff5bf5d6ae
Enable early jdk8 test (#11777) 2024-07-09 07:35:37 -07:00
Lauri Tulmin 4c8091b0b6
Disable crash early jdk8 test (#11563) 2024-06-12 16:02:31 +03:00
OpenTelemetry Bot 7d60f3ab56
Update the OpenTelemetry SDK version to 1.39.0 (#11540)
Co-authored-by: Lauri Tulmin <ltulmin@splunk.com>
2024-06-11 14:07: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
Gregor Zeitlinger 5df8a5a0a0
Manifest resource detector (#10621)
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2024-03-13 13:12:35 -07:00
Lauri Tulmin c8f2cc5a9b
Add instrumentation for jetty 12 (#10575)
Co-authored-by: Jean Bisutti <jean.bisutti@gmail.com>
2024-03-12 15:59:27 -07:00
Lauri Tulmin 3a091788ea
Update smoke test servers (#10449) 2024-02-12 14:02:27 +02:00
Trask Stalnaker d4435c9bc8
Use direct peer address in `client.address` when X-Forwarded-For is not present (#10370)
Co-authored-by: heyams <heya@microsoft.com>
2024-02-05 19:09:28 -08:00
Lauri Tulmin d36d7df184
Remove jaeger exporter and add api diff for 2.0.0 release (#10241) 2024-01-16 20:54:09 +02:00
Helen f6176919e4
Change default OTLP protocol to http/protobuf (#9993)
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2024-01-04 13:30:17 -08:00
Helen fdeb032b33
Disable controller and view spans by default (#10042)
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2024-01-04 09:16:46 -08:00
renovate[bot] d8ba39a73e
fix(deps): update errorproneversion to v2.24.0 (#10117)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Lauri Tulmin <ltulmin@splunk.com>
2024-01-01 17:38:02 -08:00
Gregor Zeitlinger 87615cc9d9
add support for OTEL_RESOURCE_ATTRIBUTES, OTEL_SERVICE_NAME, OTEL_EXPORTER_OTLP_HEADERS and OTEL_EXPORTER_OTLP_PROTOCOL for spring boot starter (#9950) 2023-12-21 08:23:48 -08:00
Mateusz Rzeszutek bdeec9fc0d
Enable stable JVM semconv by default (#9963)
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
2023-12-14 09:20:27 -08:00
Mateusz Rzeszutek 4123a639fa
Enable OTLP logs exporter (#10055) 2023-12-13 08:22:08 -08:00
Gregor Zeitlinger 1a054a53ad
rename telemetry.auto.version to telemetry.distro.version and add telemetry.distro.name (#9065)
Co-authored-by: Lauri Tulmin <tulmin@gmail.com>
2023-12-13 08:19:03 -08:00
Mateusz Rzeszutek 280c1ea4c1
Enable stable HTTP semconv by default (#9925) 2023-11-28 10:43:51 -08:00
Lauri Tulmin da024f9462
Reduce logging from okhttp3.internal.concurrent.TaskRunner (#9814) 2023-11-07 12:15:12 +01:00
jack-berg b7df46dda5
Emit package events (#9301) 2023-10-11 08:07:43 -07:00
Hayanesh e73118b434
Add Spring Boot service version finder / ResourceProvider (#9480) 2023-09-21 17:37:08 +02:00
Trask Stalnaker 3b77cc4b2d
Semconv 1.21 (#9408)
Co-authored-by: Lauri Tulmin <ltulmin@splunk.com>
2023-09-13 19:20:23 +00:00
Lauri Tulmin 91dce58dc5
Remove payara debugging instrumentation (#9342) 2023-08-30 13:12:24 +03:00
Lauri Tulmin 64258d3c9d
Update smoke test images (#9262) 2023-08-23 09:13:30 +03:00
Lauri Tulmin b644a88923
Add instrumentation to debug flaky payara smoke test (#9246) 2023-08-18 14:26:19 +03:00
Lauri Tulmin a3935c6fae
Remove okhttp debug output from smoke tests (#8944) 2023-07-13 13:45:02 +02:00
Lauri Tulmin e6c081d0c7
Update smoke test image tag (#8726) 2023-06-14 18:33:33 +00:00
Lauri Tulmin 220a486fbf
Update smoke test to use latest images (#8706) 2023-06-13 07:47:10 -07:00
siyuniu-ms 012657e596
Snippet Injection Smoke Test (#8655)
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
2023-06-07 14:33:19 -07:00
Trask Stalnaker e83d9be327
Remove dead code (#8547) 2023-05-23 08:46:39 +03:00
Lauri Tulmin c660a80c32
Update smoke tests servers and add jdk21 (#8452) 2023-05-12 10:42:35 -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
Felix Wong 51e3b77226
Smoke test with Liberty 23.0.0.3 (#8320) 2023-04-20 09:57:00 +03:00
Mateusz Rzeszutek 5b271c4917
Switch from http.flavor to net.protocol.* in HTTP server instrumentat… (#8244) 2023-04-09 08:47:33 -07:00
Mateusz Rzeszutek f501569106
Switch from http.flavor to net.protocol.* in HTTP client instrumentat… (#8131) 2023-04-07 13:39:42 +02:00
Lauri Tulmin 2f0819ae20
Improve compatibility with SecurityManager (#7983)
This pr gives classes defined in agent and extension class loaders all
permissions. Injected helper classes are also defined with all
permissions. Agent startup is altered so that we won't call methods that
require permission before we are able to get those permissions.
This pr does not attempt to address issues where agent code could allow
user code to circumvent security manager e.g.
https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/javaagent-bootstrap/src/main/java/io/opentelemetry/javaagent/bootstrap/InstrumentationHolder.java
gives access to `Instrumentation` that could be used to redefine classes
and remove security checks. Also this pr does not address failed
permission checks that could arise from user code calling agent code.
When user code, that does not have privileges, calls agent code, that
has the privileges, and agent code performs a sensitive operation then
permission check would fail because it is performed for all calling
classes, including the user classes. To fix this agent code should uses
`AccessController.doPrivileged` which basically means that, hey I have
done all the checks, run this call with my privileges and ignore the
privileges of my callers.
2023-04-05 15:41:37 +03:00
Lauri Tulmin d24d7986ad
Make spring boot service name detector handle BOOT-INF/classes (#8101)
When spring boot application is packaged in one jar
`application.properties` and `application.yml` are under
`BOOT-INF/classes/`.
2023-03-28 12:32:40 +02:00
Lauri Tulmin d24cf67741
Fix windows smoke tests (#7958)
Resolves
https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/7963
Resolves
https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/7964
2023-03-03 22:08:01 +02:00
Felix Wong ee781f5710
Update Liberty versions (#7857)
Open Liberty version 20.0.0.x are out of support. This PR removes
20.0.0.x and adds 22.0.0.x.
2023-03-02 18:53:25 +02:00
Lauri Tulmin 47090a8165
Update grpc smoke test image (#7926)
Resolves
https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/7925
2023-03-01 07:50:37 +02:00
Trask Stalnaker 62267fd4dd
Fix play smoke test (#7819)
resolves #7813

caused by conflict between #7730 and #7801
2023-02-14 22:36:27 +00:00
Mateusz Rzeszutek ea237e3a80
Update HTTP span name extractors (#7730)
Implements
https://github.com/open-telemetry/opentelemetry-specification/issues/2998

---------

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2023-02-14 07:40:05 -08:00
moznion 7e8d76a83b
Put `http.route` attribute onto `http.server.duration` on Play framework request processing (#7801)
Basically, `akka-http` instrumenter has the responsibility to instrument
the `http.server.duration` for the Play framework application, but the
current implementation has not marked the `http.route` attribute.
ref:
8e8161cb2e/instrumentation/akka/akka-http-10.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/akkahttp/server/AkkaHttpServerAttributesGetter.java (L59)

Actually, it's hard to record that attribute by only the akka-http layer
because that library's request object doesn't hold the route
information, e.g. placeholder.

So this patch delegates that job to the `play-mvc` instrumenter and when
that has been able to get the route info, the instrumenter puts
`http.route` attribute onto `http.server.duration`.

For example, when the routes configuration of the Play is like the
following:

```
GET  /foo/:bar  controllers.HomeController.doSomething(bar: String)
```

and when it tries to access that API, then OTEL instruments like so:

```prometheus
http_server_duration_count{otel_scope_name="io.opentelemetry.akka-http-10.0",otel_scope_version="1.23.0-alpha-SNAPSHOT",http_flavor="1.1",http_method="GET",http_route="/foo/$bar<[^/]+>",http_scheme="http",http_status_code="200",net_host_name="localhost",net_host_port="9000"} 1.0 1676078079798
http_server_duration_sum{otel_scope_name="io.opentelemetry.akka-http-10.0",otel_scope_version="1.23.0-alpha-SNAPSHOT",http_flavor="1.1",http_method="GET",http_route="/foo/$bar<[^/]+>",http_scheme="http",http_status_code="200",net_host_name="localhost",net_host_port="9000"} 12183.558843 1676078079798
http_server_duration_bucket{otel_scope_name="io.opentelemetry.akka-http-10.0",otel_scope_version="1.23.0-alpha-SNAPSHOT",http_flavor="1.1",http_method="GET",http_route="/foo/$bar<[^/]+>",http_scheme="http",http_status_code="200",net_host_name="localhost",net_host_port="9000",le="0.0"} 0.0 1676078079798
...
http_server_duration_bucket{otel_scope_name="io.opentelemetry.akka-http-10.0",otel_scope_version="1.23.0-alpha-SNAPSHOT",http_flavor="1.1",http_method="GET",http_route="/foo/$bar<[^/]+>",http_scheme="http",http_status_code="200",net_host_name="localhost",net_host_port="9000",le="+Inf"} 1.0 1676078079798
```

Rel: #1415

---------

Signed-off-by: moznion <moznion@mail.moznion.net>
2023-02-14 14:05:59 +02:00