-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bddf5f7
commit 5e68181
Showing
13 changed files
with
1,073 additions
and
2 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
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
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,42 @@ | ||
# zipkin-otlp-reporter-brave | ||
This allows you to send spans recorded by Brave 5.12+ with a OTLP reporter. | ||
|
||
To start sending the spans you would need to use GRPC in the following way: | ||
|
||
```xml | ||
<dependency> | ||
<groupId>io.grpc</groupId> | ||
<artifactId>grpc-protobuf</artifactId> | ||
<version>${grpc.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.grpc</groupId> | ||
<artifactId>grpc-stub</artifactId> | ||
<version>${grpc.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.grpc</groupId> | ||
<artifactId>grpc-netty-shaded</artifactId> | ||
<version>${grpc.version}</version> | ||
</dependency> | ||
``` | ||
|
||
and then set up the `Reporter` and `SpanHandler` like this | ||
|
||
```java | ||
|
||
SpanHandler otlpSpanHandler = OtlpSpanHandler | ||
.create(OtlpReporter.create(ManagedChannelBuilder.forAddress("localhost", 4317) | ||
// For demo purposes we disable security | ||
.usePlaintext())); | ||
|
||
Tracing tracing = Tracing.newBuilder() | ||
.currentTraceContext(braveCurrentTraceContext) | ||
.supportsJoin(false) | ||
.traceId128Bit(true) | ||
.sampler(Sampler.ALWAYS_SAMPLE) | ||
// Add the SpanHandler | ||
.addSpanHandler(otlpSpanHandler) | ||
.localServiceName("my-service") | ||
.build(); | ||
``` |
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,2 @@ | ||
Export-Package: \ | ||
zipkin2.reporter.otlp |
Oops, something went wrong.