Commit Graph

846 Commits

Author SHA1 Message Date
Trask Stalnaker 60757376a6
Rename spring-boot-autoconfigure artifacts (#11815) 2024-07-15 12:30:43 -07:00
Gregor Zeitlinger 77393359aa
make spring starter stable (#11763) 2024-07-12 14:20:44 -07:00
Gregor Zeitlinger e5af13931c
rename spring autoconfigure to autoconfigure-2 (#11800) 2024-07-12 12:07:53 -07:00
Jean Bisutti 54622bed61
Update @EnableOpenTelemetry javadoc (#11799) 2024-07-11 10:52:42 -07:00
Gregor Zeitlinger 9bbfe7fe4e
Use config properties for spring starter (http server) (#11667)
Co-authored-by: Lauri Tulmin <tulmin@gmail.com>
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2024-07-10 10:32:17 -07:00
Jean Bisutti e36fc46fd5
GraalVM native support for the OpenTelemetry annotations (#11757)
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2024-07-10 08:26:52 -07:00
Gregor Zeitlinger 948a58e591
Spring autoconf deps (#11784) 2024-07-10 08:26:02 -07:00
Gregor Zeitlinger 727a7e3548
support otel.instrumentation.common.default-enabled in spring starter (#11746) 2024-07-08 12:03:43 -07:00
Gregor Zeitlinger 798bdd5569
config properties support for spring starter clients (#11605) 2024-07-02 16:49:39 +03:00
Jean Bisutti 4d6b1cdf38
Use more @ConditionalOnEnabledInstrumentation (#11665) 2024-06-25 09:47:28 +03:00
Gregor Zeitlinger 47ebb94253
re-use logic for http client configuration (#11620)
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2024-06-21 16:58:41 -07:00
Ben f602e193e5
Fix InstrumentedRecordInterceptor closing the trace too early (#11471) 2024-06-13 14:50:21 -07:00
Gregor Zeitlinger 40cea5e616
Test earliest spring boot version (#11474) 2024-06-12 07:31:31 -07:00
Lauri Tulmin 5801ca7a7e
Remove usages of sdk internal StringUtils class (#11547) 2024-06-11 14:06:59 +03:00
Gregor Zeitlinger d991af71d0
move non-api classes to internal packages (#11502) 2024-06-05 08:36:24 -07:00
Lauri Tulmin d5e2742518
Fix spring-boot-actuator-autoconfigure-2.0 latest dep test (#11446) 2024-05-23 12:48:33 -07:00
Lauri Tulmin cbcc0fbf41
Fix broken link (#11445) 2024-05-23 12:48:08 -07:00
Gregor Zeitlinger d37c739365
make statement sanitizer configurable for spring boot (#11350)
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2024-05-17 11:09:08 -07:00
Trask Stalnaker 325d000498
Simplify comment (#11389) 2024-05-17 10:15:03 -07:00
Lauri Tulmin 7a06507f80
Allow library instrumentations to override span name (#11355)
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2024-05-17 12:10:32 +03:00
Gregor Zeitlinger 6b66434258
Add automatic MongoDB instrumentation to the OTel starter (#11211)
Co-authored-by: Jean Bisutti <jean.bisutti@gmail.com>
2024-05-16 19:20:38 +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
Lauri Tulmin 03770f371f
Simplify test (#11339) 2024-05-15 11:31:22 -07:00
Gregor Zeitlinger 5be203ad43
support otel.instrumentation.kafka.experimental-span-attributes in spring starter (#11263) 2024-05-15 18:30:25 +00:00
Gregor Zeitlinger d18ccc5a89
add kafka Spring starter smoke test (#11262)
Co-authored-by: Jean Bisutti <jean.bisutti@gmail.com>
2024-05-14 12:58:30 -07:00
Zachary Sistrunk 48d4c138fb
Enable instrumentation of Spring EJB clients (#11104)
Co-authored-by: Lauri Tulmin <ltulmin@splunk.com>
2024-05-10 07:52:08 -07:00
Gregor Zeitlinger ebc38b4461
add spring starter r2dbc support (#11221)
Co-authored-by: Jean Bisutti <jean.bisutti@gmail.com>
Co-authored-by: Lauri Tulmin <ltulmin@splunk.com>
2024-05-10 15:50:18 +03:00
Andrei Chugunov deac3971d9
spring mvc tests to java (#11114)
Co-authored-by: Lauri Tulmin <ltulmin@splunk.com>
2024-05-08 12:28:35 +03:00
Gregor Zeitlinger 32df5ae710
extract @SpringBootInstrumentation annotation (#11293) 2024-05-08 10:12:39 +03:00
Jean Bisutti a9a97c0518
Add automatic JDBC instrumentation to the OTel Spring starter (#11258) 2024-05-02 17:29:21 +00:00
Andrei Chugunov acef37c7df
move spring-jms-2.0 tests to java (#11195) 2024-04-29 21:02:12 +03:00
Gregor Zeitlinger 2f79f1dcc0
move the reactive spring tests to a different directory (#11234) 2024-04-29 09:28:23 -07:00
Gregor Zeitlinger d1591f72a7
Small fixes (#11236) 2024-04-29 11:55:35 +03:00
Gregor Zeitlinger 0a1c87e9f0
suppress error log in test (#11223) 2024-04-25 14:11:51 +03:00
Zachary Sistrunk d4237fc01a
Updating tests to support using non-localhost Docker runtimes (#11106) 2024-04-24 15:18:06 -07:00
Gregor Zeitlinger 8cf2217dca
add support for webflux server in spring starter (#11185) 2024-04-23 16:20:34 +03:00
Andrei Chugunov 483387d333
move spring-ws-2.0 tests to java (#11196)
Co-authored-by: Lauri Tulmin <tulmin@gmail.com>
2024-04-23 08:17:23 +00:00
Gregor Zeitlinger c370aef658
ensure no warnings are emitted in spring starter startup (#11201) 2024-04-23 10:47:39 +03:00
Gregor Zeitlinger f71537a13c
Spring rest client (#11038) 2024-04-22 17:37:21 -07:00
Steven Swartz 84d0511694
Use constant span name when using Spring AMQP AnonymousQueues (#11141) 2024-04-22 11:03:33 +03:00
Lauri Tulmin 7ff3b23f10
Remove db.connection_string (#11089) 2024-04-12 09:09:25 +03:00
Gregor Zeitlinger 62116ddb3f
Cloud provider in spring starter (#11014) 2024-04-11 15:03:17 -07:00
Gregor Zeitlinger 7de246bb34
add instrumentation for RestTemplateBuilder (#11054)
Co-authored-by: Jean Bisutti <jean.bisutti@gmail.com>
2024-04-11 15:02:40 -07:00
Gregor Zeitlinger 272258290f
improve tests for RestTemplate (#11053)
Co-authored-by: Lauri Tulmin <tulmin@gmail.com>
2024-04-11 07:30:15 -07:00
Gregor Zeitlinger 0026dda7b1
support service.instance.id in spring starter (#11071) 2024-04-11 07:26:59 -07:00
Gregor Zeitlinger e175df814c
logging exporter was renamed to console in 1.37 (#11100) 2024-04-11 07:26:19 -07:00
Lauri Tulmin 9efbec6fd5
Replace messaging.kafka.destination.partition with messaging.destination.partition.id (#11086) 2024-04-11 09:16:50 +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 19b65c062e
make spring boot honor the standard environment variables for maps (#11000) 2024-04-08 11:33:05 -07:00
Lauri Tulmin 8bb279f21e
Fix spring kafka interceptor wrappers not delegating some methods (#10935) 2024-03-25 17:20:54 -07:00
Lauri Tulmin 4c45e94098
Handle async requests in srping mvc library instrumentation (#10868) 2024-03-20 14:04:53 +02:00
Gregor Zeitlinger 3839342e3b
move spring resources to javaagent directory (#10813) 2024-03-14 08:27:19 -07:00
Gregor Zeitlinger b7e847c4f1
Spring use sdk autoconfig (#10453) 2024-03-13 07:41:47 -07:00
Lauri Tulmin afa3207e87
Fix spring kafka context leak when batch listener is retried (#10741) 2024-03-12 14:03:29 +02:00
Lauri Tulmin fa5548b9a5
Fix spring boot starter failing without logback (#10802) 2024-03-12 10:01:45 +02:00
Gregor Zeitlinger c73bf8eadf
Fix native tests (#10685)
Co-authored-by: Jean Bisutti <jean.bisutti@gmail.com>
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
Co-authored-by: Lauri Tulmin <tulmin@gmail.com>
2024-02-28 19:08:07 -08:00
Jean Bisutti edf64c5b31
Ability to disable the automatic Logback appender addition (#10629) 2024-02-26 15:22:08 +02:00
Gregor Zeitlinger 4ed5adeb17
don't fail spring application startup if sdk is disabled (#10602) 2024-02-22 14:16:09 +02:00
Lauri Tulmin b5bbc62fa1
Always create a JMS consumer span (#10604) 2024-02-22 09:13:25 +02:00
Gregor Zeitlinger 1cd768e294
spring boot starter: add service.version detection, improve service.name detection (#10457) 2024-02-21 12:46:58 -08:00
Gregor Zeitlinger ee9cdc3800
add in starter: annotations (#10613) 2024-02-21 16:08:21 +02:00
Gregor Zeitlinger d8aa0f5b48
Remove deprecated spring properties (#10454) 2024-02-16 08:27:26 -08:00
Gregor Zeitlinger 66dd60015c
fix otel.properties in spring boot starter (#10559) 2024-02-15 12:11:11 -08:00
Lauri Tulmin 37b145b81c
Remove disabling spring-boot-autoconfigure tests on openj9 18 (#10551) 2024-02-14 08:40:24 -08:00
Gregor Zeitlinger 76ab93780e
Spring starter should support otel.propagators (#10408) 2024-02-13 10:02:07 -08:00
Jay DeLuca b43fbea416
Update Spring autoconfigure and zipkin starter readmes to link to doc site (#10531) 2024-02-13 08:32:16 -08:00
Gregor Zeitlinger 485b8f4218
use duration parser of config properties for consistency (#10512) 2024-02-13 08:30:27 -08:00
Gregor Zeitlinger d73304b078
remove support for deprecated @WithSpan annotation from spring starter (#10530) 2024-02-13 08:27:08 -08:00
Steve Rao 0a5c31193c
Deleted redundant checks (#10434) 2024-02-07 07:30:52 -08:00
Gregor Zeitlinger 29354a7ba6
add SystemOutLogRecordExporter for spring starter (#10420) 2024-02-06 07:50:27 -08:00
Lauri Tulmin acb078bbc3
Wrap request to avoid modifying attributes of the original request (#10389) 2024-02-06 08:44:02 +02:00
Gregor Zeitlinger f715a189bf
re-use sdk logic for configuring otlp exporters (#10292)
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2024-02-05 20:44:37 -08: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 e47be09fbd
Disable actuator instrumentation by default (#10394) 2024-02-03 08:48:40 +00:00
Jean Bisutti 80e5bac4a4
Allow the Spring starter to configure the OTel Logback appender from system properties (#10355) 2024-02-02 17:27:58 +00:00
Gregor Zeitlinger bb8e301111
fix MapConverter bean condition (#10346) 2024-01-31 19:33:47 -08:00
Gregor Zeitlinger 5969622052
add resource detectors to spring starter (#10277) 2024-01-31 17:21:34 +02:00
Lauri Tulmin b57c1a023b
Update semconv (#10272) 2024-01-30 17:10:35 +00:00
Gregor Zeitlinger 2e5ac56213
add LoggingMetricExporterAutoConfiguration to spring factories (#10282) 2024-01-30 13:45:39 +02:00
Jean Bisutti 8825359748
Automatic addition of the OTel Logback appender by the OTel starter (#10306) 2024-01-24 08:45:13 -08:00
Lauri Tulmin 9259ce828a
Add context propagation for rector schedulers (#10311) 2024-01-24 09:11:47 +02:00
Lauri Tulmin 87f6be691e
Use constants from SemanticAttributes (#10302) 2024-01-23 08:05:42 -08:00
Gregor Zeitlinger 9c8644c874
add Spring boot distro version (#10276) 2024-01-23 10:37:04 +02:00
Gregor Zeitlinger 3b65ee1a32
add @ConditionalOnMissingBean to LoggingMetricExporter (#10283) 2024-01-19 11:33:37 +02:00
Lauri Tulmin 61e29873ee
Fix Calling shutdown() multiple times warning in spring starter (#10222) 2024-01-18 10:20:35 -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
Lauri Tulmin c418b14914
Don't append signal path to signal specific endpoint (#10214) 2024-01-12 09:14:37 -08:00
Jean Bisutti 32ea07c1bc
Change Spring starter default otlp protocol from gRPC to http/protobuf (#10212) 2024-01-11 13:09:17 -08:00
Lauri Tulmin 3dd0925081
Honor default enabled for instrumentation modules (#10211) 2024-01-11 07:49:51 -08:00
Lauri Tulmin 6ce3bd8c14
Add network attributes to rabbitmq process spans (#10210) 2024-01-11 07:49:03 -08:00
Lauri Tulmin 78648478ae
Disable springws instrumentation when controller telemetry is not enabled (#10192) 2024-01-09 14:38:00 -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
Lauri Tulmin 27615c5690
Document spring-batch and spring-scheduling flags (#10155) 2024-01-03 10:49:28 -08:00
moznion c66c59a5b8
Resolve `ParameterNameDiscoverer` Bean Conflict in `spring-boot-autoconfigure` (#10105)
Signed-off-by: moznion <moznion@mail.moznion.net>
2024-01-02 14:51:07 -08:00
Lauri Tulmin 4ac62380d5
Replace OpenTelemetrySupplier with ObjectProvider<OpenTelemetry> (#10145) 2024-01-01 17:38:49 -08:00
Lauri Tulmin 04da58e5e4
Fix warnings from the spring boot starter (#10086) 2023-12-22 11:00:01 +02:00
Lauri Tulmin a2d4148067
Remove http stable semconv tests (#10087) 2023-12-21 08:30:26 -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
Vallabh Natu 818ff6fcbe
Convert Spring Scheduling groovy tests to java (#9806)
Co-authored-by: Lauri Tulmin <ltulmin@splunk.com>
2023-12-21 16:34:33 +02:00
Lauri Tulmin ad16ba88b2
Fix using opentelemetry-spring-boot with java8 (#10066) 2023-12-13 10:24:52 -08:00
Gregor Zeitlinger 3213c86784
Breaking change: disable micrometer bridge by default (#10038) 2023-12-12 11:47:55 -08:00
Lauri Tulmin 65b9fa2712
Fix spring-cloud-gateway-2.2 latest dep tests (#10023) 2023-12-07 12:05:38 +01:00
Mateusz Rzeszutek 1ac8c4d606
Implement `error.type` in `spring-webflux` and `reactor-netty` instrumentations (#9967) 2023-12-05 12:27:09 +00:00
Jean Bisutti df8b334ccf
Fix NoSuchBeanDefinitionException with the JDBC driver configuration (#9978) 2023-12-04 11:19:02 -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 280c1ea4c1
Enable stable HTTP semconv by default (#9925) 2023-11-28 10:43:51 -08:00
Jean Bisutti 00b6398cd7
Point the OpenTelemetry Spring Starter doc to opentelemetry.io website (#9926) 2023-11-27 09:20:59 -08:00
Mateusz Rzeszutek 63468157fc
Fix latest dep tests after the recent Spring release (#9947) 2023-11-24 21:07:48 +00:00
Lauri Tulmin d4e6078cfe
Fix aws propagator presence check (#9924) 2023-11-22 10:03:00 +02:00
Lauri Tulmin 672fa2215f
Fix link to spring integration channel configuration doc (#9931) 2023-11-22 08:50:36 +01:00
Lauri Tulmin e148b84536
Fix spring-kafka-2.7 latest dep tests (#9921) 2023-11-21 11:59:18 +01:00
Lauri Tulmin 6313391d71
Rewrite @Advice.Enter for indy advice (#9887) 2023-11-17 07:49:19 -08:00
Lauri Tulmin dedfc204c1
Fix latest dep tests (#9892) 2023-11-16 10:12:24 -08:00
Phil Clay 6ed32390bc
Capture enduser attributes in Spring Security (#9777) 2023-11-14 12:23:09 -08:00
Lauri Tulmin 23b2521c43
Remove reference to tracer bean from spring boot docs (#9864) 2023-11-14 07:15:45 -08:00
Trask Stalnaker 5ba402fd2f
opentelemetry -> openTelemetry (#9858) 2023-11-14 12:31:42 +02:00
AlchemyDing 8c6f4b06a7
Add the situation of specifying spring.application.name in the bootstrap file after introducing spring cloud (#9801) 2023-11-06 09:44:44 -08:00
Jonas Kunz 6eb8ae19df
Allow injection of helper bytecode as resources (#9752) 2023-11-06 09:37:52 -08:00
Lauri Tulmin f811bf6840
Second attempt at fixing flaky spring rabbit test (#9809) 2023-11-06 16:50:16 +02:00
Lauri Tulmin 70e3962a87
Always set messaging operation (#9791) 2023-11-06 12:30:27 +02:00
Liu Ziming 702ae30076
feat: get route info in spring-cloud-gateway (#9597) 2023-11-03 09:40:35 -07:00
Lauri Tulmin bf931abe74
Fix flaky spring webflux test (#9802) 2023-11-02 13:30:03 -07:00
Mateusz Rzeszutek d6c2aff7c2
Change `http.request.body.size` and `http.response.body.size` attributes from recommended to opt-in (#9799) 2023-11-02 11:20:50 -07:00
Lauri Tulmin a1b849e168
Fix flaky spring rabbit test (#9795) 2023-11-02 08:42:22 -07:00
Mateusz Rzeszutek 96d59d5539
Refactor HTTP server `server.address` and `server.port` attributes (#9760) 2023-10-30 08:55:30 +01: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
Mateusz Rzeszutek e9026cd591
Deprecate old server/client socket getter methods (#9716) 2023-10-19 17:36:57 +02:00
Mateusz Rzeszutek 9cb157492c
Replace `(client|server).socket.(address|port)` attributes with `network.(peer|local).(address|port)` (#9676) 2023-10-18 10:36:32 +00:00
Liu Ziming 3b08db75cd
convert spring-webflux groovy test to java (#9677)
Co-authored-by: Jean Bisutti <jean.bisutti@gmail.com>
2023-10-17 07:10:40 -07:00
Lauri Tulmin e7db2c0246
Allow enabling receive telemetry in kafka library instrumentation (#9693) 2023-10-17 15:47:11 +02:00
Liu Ziming 48a19d7e54
fix typo in SprintJpaTest (#9678) 2023-10-13 09:35:20 -07:00
Matthieu MOREL 9a1c178d58
PeerService Resolver (#9061)
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
Co-authored-by: jason plumb <75337021+breedx-splk@users.noreply.github.com>
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
Co-authored-by: Lauri Tulmin <ltulmin@splunk.com>
2023-10-12 07:52:05 -07:00
Lauri Tulmin de7cdcc22b
Run tests with java 21 (#9620) 2023-10-09 17:07:46 +03:00
Lauri Tulmin 553eaa576c
Spring webflux: add user spans as children of the controller span (#9572) 2023-09-28 21:25:34 +03:00
Lauri Tulmin b464369253
Improve spring data reactive instrumentation (#9561) 2023-09-27 21:16:04 +03:00
Lauri Tulmin 7d2259742a
Transform inline advice to delegating advice and test indy modules (#9508) 2023-09-22 11:15:39 +03:00
Hayanesh e73118b434
Add Spring Boot service version finder / ResourceProvider (#9480) 2023-09-21 17:37:08 +02:00
Mateusz Rzeszutek d6c6e8a110
Support application.yaml files in SpringBootServiceNameDetector (#9515) 2023-09-21 15:33:10 +03:00
Mateusz Rzeszutek 3136916749
Add HTTP server tests for non standard methods (#9446) 2023-09-15 08:43:36 -07:00
Lauri Tulmin 913bebb979
Fix deprecated buildDir warning in gradle scripts (#9472) 2023-09-15 08:43:57 +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 d157b68efb
Use HTTP instead of non-known method in http span name (#9441)
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
2023-09-13 10:14:30 -07:00
Lauri Tulmin f7128b0d59
Add null check (#9434) 2023-09-11 09:00:38 -07:00
Trask Stalnaker cc4e1bf1ae
Update semconv to 1.21.0, PART 2 - HTTP (#9372) 2023-09-07 08:25:23 -07:00
Lauri Tulmin 323be549f5
Pin hibernate version in spring data latest dep tests (#9366) 2023-09-01 08:55:10 +02:00
Mateusz Rzeszutek 133de2486a
Extract HTTP server experimental metrics to a separate class (#9259) 2023-08-30 08:49:42 -07:00
Mateusz Rzeszutek d7a34f90ba
Refactor and rename `HttpClientResend` and `HttpRouteHolder` (#9280)
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2023-08-26 00:37:25 +00:00
Lauri Tulmin 88961cc8ad
Remove outdated spring documentation (#9248) 2023-08-18 08:18:20 -07:00