Skip to content

Commit 2394fa1

Browse files
jack-bergchalin
andauthored
Refactor java instrumentation (#5276)
Co-authored-by: Patrice Chalin <[email protected]>
1 parent e6eef27 commit 2394fa1

File tree

16 files changed

+2090
-1399
lines changed

16 files changed

+2090
-1399
lines changed

.gitmodules

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@
3131
[submodule "content-modules/opentelemetry-java-examples"]
3232
path = content-modules/opentelemetry-java-examples
3333
url = https://github.com/open-telemetry/opentelemetry-java-examples.git
34-
javaexamples-pin = 8fe9a11
34+
javaexamples-pin = 0f736ec

.htmltest.yml

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ IgnoreDirs:
1010
- ^blog/(\d+/)?page/\d+
1111
# TODO drop after https://github.com/open-telemetry/opentelemetry.io/issues/5267 is fixed:
1212
- zh/docs/contributing/pr-checks
13+
# TODO drop after https://github.com/open-telemetry/opentelemetry.io/issues/5423 is fixed:
14+
- (ja|pt)/docs/concepts/instrumentation/libraries/
1315
IgnoreInternalURLs: # list of paths
1416
IgnoreURLs: # list of regexs of paths or URLs to be ignored
1517
- ^/api$

content/en/blog/2023/spring-native/index.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ Boot 3) out of the box:
3737
```
3838

3939
To get even more visibility, the Starter can be combined with
40-
[instrumentation libraries](/docs/languages/java/libraries/). For this purpose,
41-
the OpenTelemetry Java contributors have improved the JDBC (database) libraries
42-
and logging instrumentation libraries. For example, for the Logback logging
43-
library, they have added GraalVM configuration to make the library work in
44-
native mode[^1].
40+
[instrumentation libraries](/docs/languages/java/instrumentation/). For this
41+
purpose, the OpenTelemetry Java contributors have improved the JDBC (database)
42+
libraries and logging instrumentation libraries. For example, for the Logback
43+
logging library, they have added GraalVM configuration to make the library work
44+
in native mode[^1].
4545

4646
Furthermore, they have worked to reduce the configuration to set up the logging
4747
and database instrumentation with the Starter. For example, if your application

content/en/docs/collector/deployment/agent.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ Cons:
129129
[instrumentation]: /docs/languages/
130130
[otlp]: /docs/specs/otel/protocol/
131131
[collector]: /docs/collector/
132-
[instrument-java-metrics]: /docs/languages/java/instrumentation/#metrics
132+
[instrument-java-metrics]: /docs/languages/java/api-components/#meterprovider
133133
[otlp-exporter]: /docs/specs/otel/protocol/exporter/
134134
[java-otlp-example]:
135135
https://github.com/open-telemetry/opentelemetry-java-docs/tree/main/otlp

content/en/docs/concepts/instrumentation/libraries.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ After you create a span, pass new trace context to the application code
265265
(callback or handler), by making the span active; if possible, do this
266266
explicitly. The following Java example shows how to add trace context and
267267
activate a span. See the
268-
[Context extraction in Java](/docs/languages/java/instrumentation/#context-propagation),
268+
[Context extraction in Java](/docs/languages/java/api-components/#contextpropagators),
269269
for more examples.
270270

271271
```java
@@ -289,9 +289,7 @@ try (Scope unused = span.makeCurrent()) {
289289
```
290290

291291
In the case of a messaging system, you might receive more than one message at
292-
once. Received messages become
293-
[links](/docs/languages/java/instrumentation/#create-spans-with-links) on the
294-
span you create. Refer to
292+
once. Received messages become links on the span you create. Refer to
295293
[messaging conventions](/docs/specs/semconv/messaging/messaging-spans/) for
296294
details.
297295

0 commit comments

Comments
 (0)