xref: /aosp_15_r20/external/googleapis/google/monitoring/v3/span_context.proto (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
1// Copyright 2023 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15syntax = "proto3";
16
17package google.monitoring.v3;
18
19option csharp_namespace = "Google.Cloud.Monitoring.V3";
20option go_package = "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb;monitoringpb";
21option java_multiple_files = true;
22option java_outer_classname = "SpanContextProto";
23option java_package = "com.google.monitoring.v3";
24option php_namespace = "Google\\Cloud\\Monitoring\\V3";
25option ruby_package = "Google::Cloud::Monitoring::V3";
26
27// The context of a span. This is attached to an
28// [Exemplar][google.api.Distribution.Exemplar]
29// in [Distribution][google.api.Distribution] values during aggregation.
30//
31// It contains the name of a span with format:
32//
33//     projects/[PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID]
34message SpanContext {
35  // The resource name of the span. The format is:
36  //
37  //     projects/[PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID]
38  //
39  // `[TRACE_ID]` is a unique identifier for a trace within a project;
40  // it is a 32-character hexadecimal encoding of a 16-byte array.
41  //
42  // `[SPAN_ID]` is a unique identifier for a span within a trace; it
43  // is a 16-character hexadecimal encoding of an 8-byte array.
44  string span_name = 1;
45}
46