Skip to content

Commit dfb223a

Browse files
committed
update java span profiles doc
1 parent b4bfb5d commit dfb223a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docs/sources/configure-client/trace-span-profiles/java-span-profiles.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,14 @@ EXPOSE 5000
5252
CMD ["java", "-Dserver.port=5000", "-jar", "./my-app.jar" ]
5353
```
5454

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:
55+
By adding the OTel Java agent and the Pyroscope OTel Java Agent extension, you can enrich your profiles with span IDs. This makes it possible to query for span-specific profiling data in Grafana Tempo:
5656

5757
```Dockerfile
5858
# [...]
5959

6060
EXPOSE 5000
6161

6262
## Add required libararies
63-
ADD https://github.com/grafana/pyroscope-java/releases/download/v0.12.2/pyroscope.jar ./pyroscope.jar
6463
ADD https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v1.17.0/opentelemetry-javaagent.jar opentelemetry-javaagent.jar
6564
ADD https://repo1.maven.org/maven2/io/pyroscope/otel/0.10.1.11/otel-0.10.1.11.jar pyroscope-otel.jar
6665

@@ -85,7 +84,7 @@ ENV PYROSCOPE_SERVER_ADDRESS=http://localhost:4040
8584
# ENV PYROSCOPE_BASIC_AUTH_PASSWORD=glc_secret ## Grafana Cloud Password / API Token
8685

8786
## Add the pyroscope and the opentelemetry java-agents
88-
CMD ["java", "-Dserver.port=5000", "-javaagent:./opentelemetry-javaagent.jar", "-javaagent:pyroscope.jar", "-jar", "./my-app.jar" ]
87+
CMD ["java", "-Dserver.port=5000", "-javaagent:./opentelemetry-javaagent.jar", "-jar", "./my-app.jar" ]
8988
```
9089

9190
### Available configuration options
@@ -118,4 +117,4 @@ The profile type or app must be selected for the query to be valid. Grafana does
118117

119118
## Examples
120119

121-
Check out the [examples](https://github.com/grafana/pyroscope/tree/main/examples/tracing/tempo) directory for a complete demo application that shows tracing integration features.
120+
Check out the [examples](https://github.com/grafana/pyroscope/tree/main/examples/tracing/java) directory for a complete demo application that shows tracing integration features.

0 commit comments

Comments
 (0)