Skip to content

Commit

Permalink
feat: EI-2320 - Introduce otel context headers field
Browse files Browse the repository at this point in the history
- Allow for tracing information to be propagated in API requests
  • Loading branch information
vtermanis committed Aug 11, 2023
1 parent 6986456 commit b0fd4cc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion proto/iotics/api/common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,12 @@ enum Scope {
// RequestInfo is a request parameter used to provide additional information about the request.
// It will also be included in the response.
message RequestInfo {
// startTime isthe start timestamp of the request
// Start timestamp of the request, from the perspective of the host (server). Values supplied by the client will be
// ignored
google.protobuf.Timestamp startTime = 1;
// OpenTelemetry headers for tracing support (W3C Trace Context / Baggage). If no valid context is provided by the
// client, the host (server) will initialise one.
map <string, string> otelCtx = 2;
}

// Headers describes the common headers applicable to all the API requests
Expand Down

0 comments on commit b0fd4cc

Please sign in to comment.