span_context.proto 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // Copyright 2021 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. syntax = "proto3";
  15. package google.monitoring.v3;
  16. option csharp_namespace = "Google.Cloud.Monitoring.V3";
  17. option go_package = "google.golang.org/genproto/googleapis/monitoring/v3;monitoring";
  18. option java_multiple_files = true;
  19. option java_outer_classname = "SpanContextProto";
  20. option java_package = "com.google.monitoring.v3";
  21. option php_namespace = "Google\\Cloud\\Monitoring\\V3";
  22. option ruby_package = "Google::Cloud::Monitoring::V3";
  23. // The context of a span. This is attached to an
  24. // [Exemplar][google.api.Distribution.Exemplar]
  25. // in [Distribution][google.api.Distribution] values during aggregation.
  26. //
  27. // It contains the name of a span with format:
  28. //
  29. // projects/[PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID]
  30. message SpanContext {
  31. // The resource name of the span. The format is:
  32. //
  33. // projects/[PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID]
  34. //
  35. // `[TRACE_ID]` is a unique identifier for a trace within a project;
  36. // it is a 32-character hexadecimal encoding of a 16-byte array.
  37. //
  38. // `[SPAN_ID]` is a unique identifier for a span within a trace; it
  39. // is a 16-character hexadecimal encoding of an 8-byte array.
  40. string span_name = 1;
  41. }