generated from micronaut-projects/micronaut-project-template
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug: opentelemetry-exporter-jaeger gone (#539)
Jaeger supports OTLP out-of-the-box. see: https://opentelemetry.io/blog/2023/jaeger-exporter-collector-migration/
- Loading branch information
Showing
4 changed files
with
51 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
src/main/docs/guide/opentelemetry/exporters/exporterjaeger.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
For Jaeger export use the OpenTelemetry Protocol exporter: `otlp` with the following dependency: | ||
|
||
dependency:opentelemetry-exporter-otlp[scope="implementation", groupId="io.opentelemetry"] | ||
|
||
IMPORTANT: The latest binary release of the OpenTelemetry Collector no longer includes exporters for the native Jaeger format. | ||
https://opentelemetry.io/blog/2023/jaeger-exporter-collector-migration/[Jaeger has support for OTLP out of the box]. If you had in your application the dependency `io.opentelemetry:opentelemetry-exporter-jaeger` replace it with `io.opentelemetry:opentelemetry-exporter-otlp`. Also, in your application configuration, replace `otel.tracer.exporter=jaeger` with `otel.tracer.exporter=otlp` and supply the otlp endpoint. | ||
|
||
To configure Micronaut Tracing for OpenTelemetry OTLP exporter and Jager, add the following configuration: | ||
[configuration] | ||
---- | ||
otel: | ||
traces: | ||
exporter: otlp | ||
exporter: | ||
otlp: | ||
endpoint: http://localhost:4317 | ||
---- | ||
|
||
In the previous configuration snippet, replace `http://localhost:4317` with your Jaeger endpoint. | ||
|
||
Checkout the guide https://guides.micronaut.io/latest/micronaut-microservices-distributed-tracing-jaeger-opentelemetry.html[Use OpenTelemetry with Jaeger and the Micronaut Framework for Microservice distributed tracing]. |
26 changes: 26 additions & 0 deletions
26
src/main/docs/guide/opentelemetry/exporters/exporterzipkin.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
- Zipkin exporter: `zipkin` | ||
dependency:opentelemetry-exporter-zipkin[scope="implementation", groupId="io.opentelemetry"] | ||
Example configuration for the Zipkin exporter: | ||
|
||
[configuration] | ||
---- | ||
otel: | ||
traces: | ||
exporter: zipkin | ||
---- | ||
|
||
Micronaut provides Zipkin exporter that will use Micronaut's HTTP client instead of OKHttp client. That will reduce dependency graph and will make your native executable smaller. To use it add next dependency: | ||
|
||
dependency:micronaut-tracing-opentelemetry-zipkin-exporter[scope="implementation", groupId="io.micronaut.tracing"] | ||
|
||
To configure Micronaut Zipkin exporter add | ||
[configuration] | ||
---- | ||
otel: | ||
exporter: | ||
zipkin: | ||
url: <url-to-zipkin-server> | ||
---- | ||
|
||
NOTE: Micronaut Zipkin exporter requires `otel.traces.exporter` property not to be defined to avoid conflicts with Open Telemetry default implementation of zipkin exporter. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters