Spring Cloud Sleuth OpenTelemetry (OTel) 1.1.0 已釋出

版本釋出 | Marcin Grzejszczak | 2022年9月16日 | ...

我代表社群高興地宣佈,Spring Cloud Sleuth OTel 1.1.0 專案的釋出今天已可用。該版本可在Maven Central中找到。您可以檢視參考文件以獲取更多資訊

這是什麼?

Spring Cloud Sleuth OTel是Spring Cloud Sleuth的擴充套件專案,它帶有一個OpenTelemetry跟蹤器。

一如既往,我們歡迎在GitHubGitterStack OverflowTwitter上提供反饋。

Maven 起步使用 BOM(僅依賴管理)


<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-dependencies</artifactId>
            <version>2021.0.4</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-sleuth-otel-dependencies</artifactId>
            <version>1.1.0</version>
            <scope>import</scope>
            <type>pom</type>
        </dependency>
    </dependencies>
</dependencyManagement>
<dependencies>
    <dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-starter-sleuth</artifactId>
        <exclusions>
            <exclusion>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-sleuth-brave</artifactId> <!-- We want to exclude the default tracer coming from Sleuth... -->
            </exclusion>
        </exclusions>
    </dependency>
    <dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-sleuth-otel-autoconfigure</artifactId>  <!-- ... and we want to include the one coming from Spring Cloud Sleuth OTel -->
    </dependency>
</dependencies>

或使用 Gradle

buildscript {
dependencies {
classpath "io.spring.gradle:dependency-management-plugin:1.0.2.RELEASE"
}
}



apply plugin: "io.spring.dependency-management"

dependencyManagement {
imports {
mavenBom 'org.springframework.cloud:spring-cloud-dependencies:2021.0.4'
mavenBom 'org.springframework.cloud:spring-cloud-sleuth-otel-dependencies:1.1.0'
}
}

dependencies {
implementation('org.springframework.cloud:spring-cloud-starter-sleuth') {
    exclude group: 'org.springframework.cloud', module: 'spring-cloud-sleuth-brave' //  We want to exclude the default tracer coming from Sleuth...
}
implementation 'org.springframework.cloud:spring-cloud-sleuth-otel-autoconfigure' // ... and we want to include the one coming from Spring Cloud Sleuth OTel
}

獲取 Spring 新聞通訊

透過 Spring 新聞通訊保持聯絡

訂閱

領先一步

VMware 提供培訓和認證,助您加速進步。

瞭解更多

獲得支援

Tanzu Spring 提供 OpenJDK™、Spring 和 Apache Tomcat® 的支援和二進位制檔案,只需一份簡單的訂閱。

瞭解更多

即將舉行的活動

檢視 Spring 社群所有即將舉行的活動。

檢視所有