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 社群中所有即將到來的活動。

檢視全部