-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[java][parametric] add OpenTracing and OpenTelemetry baggage endpoints (
- Loading branch information
1 parent
ba3b2cc
commit 0e1570e
Showing
14 changed files
with
185 additions
and
27 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
7 changes: 7 additions & 0 deletions
7
...a/parametric/src/main/java/com/datadoghq/trace/opentelemetry/dto/GetAllBaggageResult.java
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,7 @@ | ||
package com.datadoghq.trace.opentelemetry.dto; | ||
|
||
import java.util.Map; | ||
|
||
public record GetAllBaggageResult( | ||
Map<String, String> baggage) { | ||
} |
5 changes: 5 additions & 0 deletions
5
...r/java/parametric/src/main/java/com/datadoghq/trace/opentelemetry/dto/GetBaggageArgs.java
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,5 @@ | ||
package com.datadoghq.trace.opentelemetry.dto; | ||
|
||
public record GetBaggageArgs( | ||
String key) { | ||
} |
6 changes: 6 additions & 0 deletions
6
...java/parametric/src/main/java/com/datadoghq/trace/opentelemetry/dto/GetBaggageResult.java
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,6 @@ | ||
package com.datadoghq.trace.opentelemetry.dto; | ||
|
||
public record GetBaggageResult( | ||
String baggage) { | ||
} | ||
|
5 changes: 5 additions & 0 deletions
5
...ava/parametric/src/main/java/com/datadoghq/trace/opentelemetry/dto/RemoveBaggageArgs.java
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,5 @@ | ||
package com.datadoghq.trace.opentelemetry.dto; | ||
|
||
public record RemoveBaggageArgs( | ||
String key) { | ||
} |
7 changes: 7 additions & 0 deletions
7
...r/java/parametric/src/main/java/com/datadoghq/trace/opentelemetry/dto/SetBaggageArgs.java
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,7 @@ | ||
package com.datadoghq.trace.opentelemetry.dto; | ||
|
||
public record SetBaggageArgs( | ||
String key, | ||
String value) { | ||
} | ||
|
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
8 changes: 8 additions & 0 deletions
8
...a/parametric/src/main/java/com/datadoghq/trace/opentracing/dto/SpanGetAllBaggageArgs.java
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,8 @@ | ||
package com.datadoghq.trace.opentracing.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
public record SpanGetAllBaggageArgs( | ||
@JsonProperty("span_id") long spanId) { | ||
} | ||
|
7 changes: 7 additions & 0 deletions
7
...parametric/src/main/java/com/datadoghq/trace/opentracing/dto/SpanGetAllBaggageResult.java
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,7 @@ | ||
package com.datadoghq.trace.opentracing.dto; | ||
|
||
import java.util.Map; | ||
|
||
public record SpanGetAllBaggageResult( | ||
Map<String, String> baggage) { | ||
} |
10 changes: 10 additions & 0 deletions
10
...java/parametric/src/main/java/com/datadoghq/trace/opentracing/dto/SpanGetBaggageArgs.java
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,10 @@ | ||
package com.datadoghq.trace.opentracing.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
public record SpanGetBaggageArgs( | ||
@JsonProperty("span_id") long spanId, | ||
String key) { | ||
} | ||
|
||
|
5 changes: 5 additions & 0 deletions
5
...va/parametric/src/main/java/com/datadoghq/trace/opentracing/dto/SpanGetBaggageResult.java
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,5 @@ | ||
package com.datadoghq.trace.opentracing.dto; | ||
|
||
public record SpanGetBaggageResult( | ||
String baggage) { | ||
} |
7 changes: 7 additions & 0 deletions
7
...arametric/src/main/java/com/datadoghq/trace/opentracing/dto/SpanRemoveAllBaggageArgs.java
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,7 @@ | ||
package com.datadoghq.trace.opentracing.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
public record SpanRemoveAllBaggageArgs( | ||
@JsonProperty("span_id") long spanId) { | ||
} |
9 changes: 9 additions & 0 deletions
9
...a/parametric/src/main/java/com/datadoghq/trace/opentracing/dto/SpanRemoveBaggageArgs.java
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,9 @@ | ||
package com.datadoghq.trace.opentracing.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
public record SpanRemoveBaggageArgs( | ||
@JsonProperty("span_id") long spanId, | ||
String key) { | ||
} | ||
|
10 changes: 10 additions & 0 deletions
10
...java/parametric/src/main/java/com/datadoghq/trace/opentracing/dto/SpanSetBaggageArgs.java
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,10 @@ | ||
package com.datadoghq.trace.opentracing.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
public record SpanSetBaggageArgs( | ||
@JsonProperty("span_id") long spanId, | ||
String key, | ||
String value) { | ||
} | ||
|