Skip to content

Commit

Permalink
Fix munual instrumentation with Spring Boot app
Browse files Browse the repository at this point in the history
  • Loading branch information
PerfectSlayer committed Dec 7, 2023
1 parent 839cb22 commit 8c81894
Showing 1 changed file with 22 additions and 16 deletions.
38 changes: 22 additions & 16 deletions content/en/docs/instrumentation/java/manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,16 @@ dependencies for the OpenTelemetry API.

{{< tabpane text=true >}} {{% tab Gradle %}}

```kotlin { hl_lines=3 }
```kotlin { hl_lines=["1-5",9] }
dependencyManagement {
imports {
mavenBom("io.opentelemetry:opentelemetry-bom:{{% param vers.otel %}}")
}
}

dependencies {
implementation("org.springframework.boot:spring-boot-starter-web");
implementation("io.opentelemetry:opentelemetry-api:{{% param vers.otel %}}");
implementation("io.opentelemetry:opentelemetry-api");
}
```

Expand Down Expand Up @@ -243,14 +249,14 @@ SDK.

{{< tabpane text=true >}} {{% tab Gradle %}}

```kotlin { hl_lines="4-8" }
```kotlin { hl_lines="4-7" }
dependencies {
implementation("org.springframework.boot:spring-boot-starter-web");
implementation("io.opentelemetry:opentelemetry-api:{{% param vers.otel %}}");
implementation("io.opentelemetry:opentelemetry-sdk:{{% param vers.otel %}}");
implementation("io.opentelemetry:opentelemetry-sdk-metrics:{{% param vers.otel %}}");
implementation("io.opentelemetry:opentelemetry-exporter-logging:{{% param vers.otel %}}");
implementation("io.opentelemetry:opentelemetry-semconv:{{% param vers.otel %}}-alpha");
implementation("io.opentelemetry:opentelemetry-api");
implementation("io.opentelemetry:opentelemetry-sdk");
implementation("io.opentelemetry:opentelemetry-sdk-metrics");
implementation("io.opentelemetry:opentelemetry-exporter-logging");
implementation("io.opentelemetry:opentelemetry-semconv:{{% param vers.semconv %}}-alpha");
}
```

Expand Down Expand Up @@ -312,16 +318,16 @@ To use auto-configuration add the following dependency to your application:

{{< tabpane text=true >}} {{% tab Gradle %}}

```kotlin { hl_lines="9-10" }
```kotlin { hl_lines="8-9" }
dependencies {
implementation("org.springframework.boot:spring-boot-starter-web");
implementation("io.opentelemetry:opentelemetry-api:{{% param vers.otel %}}");
implementation("io.opentelemetry:opentelemetry-sdk:{{% param vers.otel %}}");
implementation("io.opentelemetry:opentelemetry-sdk-metrics:{{% param vers.otel %}}");
implementation("io.opentelemetry:opentelemetry-exporter-logging:{{% param vers.otel %}}");
implementation("io.opentelemetry.semconv:opentelemetry-semconv:{{% param vers.semconv %}}-alpha")
implementation("io.opentelemetry:opentelemetry-sdk-extension-autoconfigure:{{% param vers.otel %}}");
implementation("io.opentelemetry:opentelemetry-sdk-extension-autoconfigure-spi:{{% param vers.otel %}}");
implementation("io.opentelemetry:opentelemetry-api");
implementation("io.opentelemetry:opentelemetry-sdk");
implementation("io.opentelemetry:opentelemetry-sdk-metrics");
implementation("io.opentelemetry:opentelemetry-exporter-logging");
implementation("io.opentelemetry.semconv:opentelemetry-semconv:{{% param vers.semconv %}}-alpha");
implementation("io.opentelemetry:opentelemetry-sdk-extension-autoconfigure");
implementation("io.opentelemetry:opentelemetry-sdk-extension-autoconfigure-spi");
}
```

Expand Down

0 comments on commit 8c81894

Please sign in to comment.