Skip to content

Commit a4b0057

Browse files
authored
Add the span_id_tag_name field to trace schema (#99)
1 parent 7c38bab commit a4b0057

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@ BanyandbDatabase.Trace trace = BanyandbDatabase.Trace.newBuilder()
351351
// Mandatory identifiers
352352
.setTraceIdTagName("trace_id")
353353
.setTimestampTagName("start_time")
354+
.setSpanIdTagName("span_id")
354355
.build();
355356
client.define(trace);
356357
```

src/main/proto/banyandb/v1/banyandb-database.proto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,8 @@ message Trace {
244244
string timestamp_tag_name = 4 [(validate.rules).string.min_len = 1];
245245
// updated_at indicates when the trace resource is updated.
246246
google.protobuf.Timestamp updated_at = 5;
247+
// span_id_tag_name is the name of the tag that stores the span ID.
248+
string span_id_tag_name = 6 [(validate.rules).string.min_len = 1];
247249
}
248250

249251
message StreamRegistryServiceCreateRequest {

0 commit comments

Comments
 (0)