You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update outdated java span profile information (#3339)
* Update outdated java span profile information
* Remove first person and uppercase docker
* Update docs/sources/configure-client/trace-span-profiles/java-span-profiles.md
Co-authored-by: Kim Nylander <[email protected]>
---------
Co-authored-by: Kim Nylander <[email protected]>
Copy file name to clipboardExpand all lines: docs/sources/configure-client/trace-span-profiles/java-span-profiles.md
+36-33Lines changed: 36 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -40,49 +40,52 @@ Your applications must be instrumented for profiling and tracing before you can
40
40
41
41
## Configure the otel-profiling-java package
42
42
43
-
To start collecting Span Profiles for your Java application, you need to include [otel-profiling-java](https://github.com/pyroscope-io/otel-profiling-java)in your code.
43
+
To start collecting Span Profiles for your Java application, you need to include [otel-profiling-java](https://github.com/pyroscope-io/otel-profiling-java)as an extension to your application.
44
44
45
-
This package is a `TracerProvider` implementation, that labels profiling data with span IDs which makes it possible to query for span-specific profiling data in Grafana Tempo UI.
45
+
Assuming you have this sample application Docker image:
Next, you need to create and configure the tracer provider:
61
-
```java
62
-
implementation("io.pyroscope:otel:0.10.1.11")
55
+
By adding the OTel Java agent and the Pyroscope OTel Java Agent extensions, you can enrich your profiles with span IDs. This makes it possible to query for span-specific profiling data in Grafana Tempo:
63
56
64
-
// obtain SdkTracerProviderBuilder
65
-
SdkTracerProviderBuilder tpBuilder =...
57
+
```Dockerfile
58
+
# [...]
66
59
67
-
// Add PyroscopeOtelSpanProcessor to SdkTracerProviderBuilder
0 commit comments