Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
title: その他のSpring自動設定
weight: 70
default_lang_commit: 276d7eb3f936deef6487cdd2b1d89822951da6c8
cSpell:ignore: autoconfigurations
---

<!-- markdownlint-disable blanks-around-fences -->
<?code-excerpt path-base="examples/java/spring-starter"?>

OpenTelemetry Spring スターターを使用するかわりに、OpenTelemetry Zipkin スターターを使用することもできます。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
OpenTelemetry Spring スターターを使用するかわりに、OpenTelemetry Zipkin スターターを使用することもできます
OpenTelemetry Springスターターを使用するかわりに、OpenTelemetry Zipkinスターターを使用することもできます


## Zipkin スターター {#zipkin-starter}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## Zipkin スターター {#zipkin-starter}
## Zipkinスターター {#zipkin-starter}


OpenTelemetry Zipkin Exporter スターターは、分散トレーシングの設定に必要な `opentelemetry-api`、`opentelemetry-sdk`、`opentelemetry-extension-annotations`、`opentelemetry-logging-exporter`、`opentelemetry-spring-boot-autoconfigurations` および Spring フレームワークスターターを含むスターターパッケージです。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
OpenTelemetry Zipkin Exporter スターターは、分散トレーシングの設定に必要な `opentelemetry-api``opentelemetry-sdk``opentelemetry-extension-annotations``opentelemetry-logging-exporter``opentelemetry-spring-boot-autoconfigurations` および Spring フレームワークスターターを含むスターターパッケージです
OpenTelemetry Zipkin Exporterスターターは、分散トレーシングの設定に必要な `opentelemetry-api``opentelemetry-sdk``opentelemetry-extension-annotations``opentelemetry-logging-exporter``opentelemetry-spring-boot-autoconfigurations` およびSpringフレームワークスターターを含むスターターパッケージです

また、[opentelemetry-exporters-zipkin](https://github.com/open-telemetry/opentelemetry-java/tree/main/exporters/zipkin)アーティファクトと対応するエクスポーター自動設定も提供します。

実行時にクラスパスにエクスポーターが存在し、Spring アプリケーションコンテキストにエクスポーターの Spring Bean が存在しない場合、エクスポーター Bean が初期化され、アクティブなトレーサープロバイダー内のシンプルスパンプロセッサーに追加されます。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
実行時にクラスパスにエクスポーターが存在し、Spring アプリケーションコンテキストにエクスポーターの Spring Bean が存在しない場合、エクスポーター Bean が初期化され、アクティブなトレーサープロバイダー内のシンプルスパンプロセッサーに追加されます。
実行時にクラスパスにエクスポーターが存在し、SpringアプリケーションコンテキストにエクスポーターのSpring Beanが存在しない場合、エクスポーターBeanが初期化され、アクティブなトレーサープロバイダー内のシンプルスパンプロセッサーに追加されます。

詳細については、[実装 (OpenTelemetryAutoConfiguration.java)](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/instrumentation/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/OpenTelemetryAutoConfiguration.java)を参照してください。

{{< tabpane text=true >}} {{% tab header="Maven (`pom.xml`)" lang=Maven %}}

```xml
<dependencies>
<dependency>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-exporter-zipkin</artifactId>
<version>{{% param vers.otel %}}</version>
</dependency>
</dependencies>
```

{{% /tab %}} {{% tab header="Gradle (`build.gradle`)" lang=Gradle %}}

```kotlin
dependencies {
implementation("io.opentelemetry:opentelemetry-exporter-zipkin:{{% param vers.otel %}}")
}
```

{{% /tab %}} {{< /tabpane>}}

### 設定 {#configurations}

| プロパティ | デフォルト値 | ConditionalOnClass |
| ------------------------------ | ------------ | -------------------- |
| `otel.exporter.zipkin.enabled` | true | `ZipkinSpanExporter` |