Skip to content

Commit

Permalink
Chore: used opentelemetry library for spankind
Browse files Browse the repository at this point in the history
  • Loading branch information
ricklue committed Jun 13, 2024
1 parent 4be4cdc commit a8b959e
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 9 deletions.
46 changes: 46 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,18 @@
</developer>
</developers>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-bom</artifactId>
<version>1.39.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<!--
https://www.npmjs.com/package/@wearefrank/ladybug
Expand Down Expand Up @@ -227,6 +239,40 @@
<version>1.0</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-api</artifactId>
</dependency>
<dependency>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-sdk</artifactId>
</dependency>
<dependency>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-exporter-logging</artifactId>
</dependency>
<dependency>
<groupId>io.opentelemetry.semconv</groupId>
<artifactId>opentelemetry-semconv</artifactId>
<version>1.25.0-alpha</version>
</dependency>
<dependency>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-sdk-extension-autoconfigure</artifactId>
</dependency>
<dependency>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-sdk-extension-autoconfigure-spi</artifactId>
</dependency>
<dependency>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-exporter-otlp</artifactId>
</dependency>
<dependency>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-exporter-zipkin</artifactId>
</dependency>
</dependencies>

<repositories>
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/nl/nn/testtool/Span.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
import java.time.format.DateTimeFormatter;
import java.util.HashMap;
import java.util.Map;
import io.opentelemetry.api.trace.SpanKind;

/**
* Created a Span class to map incoming telemetry data from the endpoint. There is no library available with classes to catch such telemetry data in spans.
*/

public class Span {
private String traceId;
Expand Down
9 changes: 0 additions & 9 deletions src/main/java/nl/nn/testtool/SpanKind.java

This file was deleted.

0 comments on commit a8b959e

Please sign in to comment.