Commit Graph

195 Commits

Author SHA1 Message Date
Liu Ziming 43cc57cae9
Avoid overriding user's MDC in Log4j (#13479) 2025-03-13 07:15:59 -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 15e611e2bb
Log4j2: add option to fill code attributes (#12592) 2024-11-14 08:00:56 +02:00
Trask Stalnaker 2371589ec5
Statically import semconv constants in tests (#12575) 2024-11-06 08:17:57 -08:00
Vladimir 9074b48905
Remove runtime scope from README.md (#12521) 2024-10-27 19:26:20 -07:00
Steve Rao 18a277f68e
Add missing assertInverse (#12409) 2024-10-17 07:01:19 -07:00
Entropy Tree e90959b20c
Update README.md (#12378) 2024-10-07 16:02:44 +03:00
Lauri Tulmin e8c5c066d6
Fix capturing context in log4j library instrumentation with async logger (#12176) 2024-09-12 15:09:41 -07:00
Lauri Tulmin 1ab2dbf8bc
Bridge log body any value (#12204)
Co-authored-by: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com>
2024-09-12 13:09:46 +03:00
Lauri Tulmin c8e22222d0
Make log record asserts similar to trace asserts (#12164) 2024-09-04 16:21:28 -07:00
Gregor Zeitlinger 749fafaea8
enforce static imports (#12009) 2024-08-21 10:40:50 -07:00
Gregor Zeitlinger 798bdd5569
config properties support for spring starter clients (#11605) 2024-07-02 16:49:39 +03:00
dingjiefei b47aca99d5
Allow configuring MDC key names for trace_id, span_id, trace_flags (#11329)
Co-authored-by: Lauri Tulmin <ltulmin@splunk.com>
2024-06-10 12:37:22 -07:00
Lauri Tulmin 5c6aa52213
Add log4j annotation processor (#11503) 2024-06-01 11:20:09 +03:00
Lauri Tulmin 687bf2dedf
Fix typo (#11485) 2024-05-30 07:54:32 -07:00
Lauri Tulmin 3a9972b16f
Remove incubating semconv dependency from library instrumentation (#11324) 2024-05-15 11:44:21 -07: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
Lauri Tulmin 83bb4bd25f
Fix log4j appender latest dep test (#10618) 2024-02-21 15:34:34 +02:00
Jean Bisutti 9ec6401fae
Fix log replay of the Log4j 2 appender (#10243) 2024-01-17 09:55:47 -08:00
Evgeniy Zuikin 2ee4ee116d
Remove mdc attributes prefix (#9536)
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2024-01-05 18:41:53 +00:00
Lauri Tulmin d0efffd7c5
Log4j instrumentation does not add source code attributes (#10179) 2024-01-05 08:10:10 -08:00
Gregor Zeitlinger 325477e6f6
log4j MDC attribute capture configuration (#10054) 2024-01-04 09:25:51 -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 355003538a
Fix typo in logging framework instrumentation readme (#10123) 2024-01-01 17:36:58 -08:00
Mateusz Rzeszutek 65ee9510f5
Rename the `instrumentation-api-semconv` module into `instrumentation-api-incubator` (#9985) 2023-12-04 08:28:10 +01:00
Lauri Tulmin cafbcfc198
Fix log4j-appender-2.17 latest dep tests (#9915) 2023-11-20 15:35:37 -08:00
Jean Bisutti c5cb94893b
Ability to instrument logs before OTel injection into OTel appenders (#9798)
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2023-11-17 10:03:17 -08:00
Jay DeLuca 37d1035430
Convert log4j context-data tests from groovy to java (#9804) 2023-11-15 07:08:59 -08:00
cleverchuk 81f8bf6231
Add `service.name` to MDC (#9647)
Co-authored-by: Lauri Tulmin <ltulmin@splunk.com>
2023-11-13 09:37:19 -08:00
Jean Bisutti e4d471d45b
Add volatile to the Log4j 2 OpenTelemetry appender (#9749) 2023-10-23 14:37:11 -07:00
Jonas Kunz 2d4d010cb0
Add capability for invokedynamic InstrumentationModules to inject proxies (#9565) 2023-10-19 10:11:24 -07:00
Lauri Tulmin 795c053dc6
Fix spec links (#9603) 2023-10-04 17:54:35 +03:00
Lauri Tulmin 7d2259742a
Transform inline advice to delegating advice and test indy modules (#9508) 2023-09-22 11:15:39 +03:00
Trask Stalnaker 3b77cc4b2d
Semconv 1.21 (#9408)
Co-authored-by: Lauri Tulmin <ltulmin@splunk.com>
2023-09-13 19:20:23 +00:00
Poom 2ebf4134f9
Add logging timestamp for log4j1 appender instrument (#9309) 2023-08-25 16:43:28 -07:00
Steven Swartz 12b1d3c369
Document configuration options for log4j2 appender library (#9079) 2023-07-31 10:49:10 +02:00
Steven Swartz 1e0635ba5a
Adds tests for log4j2 ThreadContext baggage attributes (#8955) 2023-07-19 12:23:53 -07:00
Trask Stalnaker 2bdddafdc4
Apply Prettier to markdown files (#8968) 2023-07-19 12:22:35 -07:00
lu-xiaoshuang a410cdeb39
support for adding baggage to log4j 2 ContextData (#8810) 2023-07-04 10:19:20 +02:00
jack-berg d20da99e94
Log4j and Logback appenders opt-in to using GlobalOpenTelemetry (#8791) 2023-06-29 19:45:04 +00:00
Mateusz Rzeszutek 9e37e724dc
Fix the main branch history (#8817) 2023-06-28 10:55:41 +00:00
Abhinandan Seshadri f25cd6354c
Convert spring rabbitmq tests from groovy to java (#8765)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
Co-authored-by: Lauri Tulmin <ltulmin@splunk.com>
Co-authored-by: SylvainJuge <763082+SylvainJuge@users.noreply.github.com>
Co-authored-by: Christian Neumüller <christian.neumueller@dynatrace.com>
2023-06-28 10:51:27 +02:00
Trask Stalnaker de25e5bb52
Fix logging timestamp (#8761) 2023-06-20 08:47:21 +03:00
Rupinder Singh 06f22a3b2e
Added setOpenTelemetry method to appender (#8231)
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2023-06-14 10:39:09 -07:00
OpenTelemetry Bot bbb05276be
Update the OpenTelemetry SDK version to 1.27.0 (#8688)
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
Co-authored-by: Lauri Tulmin <ltulmin@splunk.com>
2023-06-13 12:02:11 +03:00
OpenTelemetry Bot 2b7b27b990
Update the OpenTelemetry SDK version to 1.26.0 (#8427)
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
Co-authored-by: Lauri Tulmin <ltulmin@splunk.com>
2023-05-06 22:55:01 +00:00
Nitesh S 2d8ba003e3
convert Log4j mdc test from groovy to java (#8170)
Related to #7195
2023-03-30 17:31:51 +02:00
Lauri Tulmin f8927a45b2
Convert log4j test to test suites (#7942)
Part of
https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/7911
2023-03-01 11:26:15 -08:00
Trask Stalnaker a26b5f6639
Support slf4j to log4j2 (#7656) 2023-02-07 14:38:04 -08:00
Trask Stalnaker dab33810bb
Convert logging instrumentation tests to Java (#7631)
currently based on #7632
2023-01-24 15:18:39 -08:00