Skip to content

Commit

Permalink
feat: Add Cloud Trace v2 retry defaults for BatchWriteSpans
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 504068544

Source-Link: googleapis/googleapis@685d359

Source-Link: googleapis/googleapis-gen@43aa9da
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuVHJhY2UuVjIvLk93bEJvdC55YW1sIiwiaCI6IjQzYWE5ZGFjZmM0MTdiNjI1YWQ4YmUxYmVkMmE5ZmMzNmMyNzdkYjYifQ==
  • Loading branch information
gcf-owl-bot[bot] authored and jskeet committed Jan 24, 2023
1 parent d3b6577 commit be4bdf1
Show file tree
Hide file tree
Showing 4 changed files with 99 additions and 78 deletions.
80 changes: 43 additions & 37 deletions apis/Google.Cloud.Trace.V2/Google.Cloud.Trace.V2/Trace.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,10 @@ public static partial class TraceReflection {
/// A span represents a single operation within a trace. Spans can be
/// nested to form a trace tree. Often, a trace contains a root span
/// that describes the end-to-end latency, and one or more subspans for
/// its sub-operations. A trace can also contain multiple root spans,
/// or none at all. Spans do not need to be contiguous—there may be
/// its sub-operations.
///
/// A trace can also contain multiple root spans, or none at all.
/// Spans do not need to be contiguous—there might be
/// gaps or overlaps between spans in a trace.
/// </summary>
public sealed partial class Span : pb::IMessage<Span>
Expand Down Expand Up @@ -198,13 +200,16 @@ public sealed partial class Span : pb::IMessage<Span>
/// <summary>
/// Required. The resource name of the span in the following format:
///
/// projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]
/// * `projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]`
///
/// [TRACE_ID] is a unique identifier for a trace within a project;
/// it is a 32-character hexadecimal encoding of a 16-byte array.
/// `[TRACE_ID]` is a unique identifier for a trace within a project;
/// it is a 32-character hexadecimal encoding of a 16-byte array. It should
/// not be zero.
///
/// [SPAN_ID] is a unique identifier for a span within a trace; it
/// is a 16-character hexadecimal encoding of an 8-byte array.
/// `[SPAN_ID]` is a unique identifier for a span within a trace; it
/// is a 16-character hexadecimal encoding of an 8-byte array. It should not
/// be zero.
/// .
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Expand All @@ -219,7 +224,7 @@ public sealed partial class Span : pb::IMessage<Span>
public const int SpanIdFieldNumber = 2;
private string spanId_ = "";
/// <summary>
/// Required. The [SPAN_ID] portion of the span's resource name.
/// Required. The `[SPAN_ID]` portion of the span's resource name.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Expand All @@ -234,7 +239,7 @@ public sealed partial class Span : pb::IMessage<Span>
public const int ParentSpanIdFieldNumber = 3;
private string parentSpanId_ = "";
/// <summary>
/// The [SPAN_ID] of this span's parent span. If this is a root span,
/// The `[SPAN_ID]` of this span's parent span. If this is a root span,
/// then this field must be empty.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Expand All @@ -251,8 +256,8 @@ public sealed partial class Span : pb::IMessage<Span>
private global::Google.Cloud.Trace.V2.TruncatableString displayName_;
/// <summary>
/// Required. A description of the span's operation (up to 128 bytes).
/// Stackdriver Trace displays the description in the
/// Google Cloud Platform Console.
/// Cloud Trace displays the description in the
/// Cloud console.
/// For example, the display name can be a qualified method name or a file name
/// and a line number where the operation is called. A best practice is to use
/// the same display name within an application and at the same call point.
Expand All @@ -271,9 +276,10 @@ public sealed partial class Span : pb::IMessage<Span>
public const int StartTimeFieldNumber = 5;
private global::Google.Protobuf.WellKnownTypes.Timestamp startTime_;
/// <summary>
/// Required. The start time of the span. On the client side, this is the time kept by
/// the local machine where the span execution starts. On the server side, this
/// is the time when the server's application handler starts running.
/// Required. The start time of the span. On the client side, this is the time
/// kept by the local machine where the span execution starts. On the server
/// side, this is the time when the server's application handler starts
/// running.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Expand All @@ -288,9 +294,9 @@ public sealed partial class Span : pb::IMessage<Span>
public const int EndTimeFieldNumber = 6;
private global::Google.Protobuf.WellKnownTypes.Timestamp endTime_;
/// <summary>
/// Required. The end time of the span. On the client side, this is the time kept by
/// the local machine where the span execution ends. On the server side, this
/// is the time when the server application handler stops running.
/// Required. The end time of the span. On the client side, this is the time
/// kept by the local machine where the span execution ends. On the server
/// side, this is the time when the server application handler stops running.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Expand Down Expand Up @@ -385,8 +391,7 @@ public sealed partial class Span : pb::IMessage<Span>
/// <summary>
/// Optional. Set this parameter to indicate whether this span is in
/// the same process as its parent. If you do not set this parameter,
/// Stackdriver Trace is unable to take advantage of this helpful
/// information.
/// Trace is unable to take advantage of this helpful information.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Expand Down Expand Up @@ -420,9 +425,9 @@ public sealed partial class Span : pb::IMessage<Span>
public const int SpanKindFieldNumber = 14;
private global::Google.Cloud.Trace.V2.Span.Types.SpanKind spanKind_ = global::Google.Cloud.Trace.V2.Span.Types.SpanKind.Unspecified;
/// <summary>
/// Optional. Distinguishes between spans generated in a particular context. For example,
/// two spans with the same name may be distinguished using `CLIENT` (caller)
/// and `SERVER` (callee) to identify an RPC call.
/// Optional. Distinguishes between spans generated in a particular context.
/// For example, two spans with the same name may be distinguished using
/// `CLIENT` (caller) and `SERVER` (callee) to identify an RPC call.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Expand Down Expand Up @@ -1006,7 +1011,7 @@ public enum SpanKind {
}

/// <summary>
/// A set of attributes, each in the format `[KEY]:[VALUE]`.
/// A set of attributes as key-value pairs.
/// </summary>
public sealed partial class Attributes : pb::IMessage<Attributes>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Expand Down Expand Up @@ -1059,9 +1064,9 @@ public sealed partial class Attributes : pb::IMessage<Attributes>
= new pbc::MapField<string, global::Google.Cloud.Trace.V2.AttributeValue>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Google.Cloud.Trace.V2.AttributeValue.Parser), 10);
private readonly pbc::MapField<string, global::Google.Cloud.Trace.V2.AttributeValue> attributeMap_ = new pbc::MapField<string, global::Google.Cloud.Trace.V2.AttributeValue>();
/// <summary>
/// The set of attributes. Each attribute's key can be up to 128 bytes
/// A set of attributes. Each attribute's key can be up to 128 bytes
/// long. The value can be a string up to 256 bytes, a signed 64-bit integer,
/// or the Boolean values `true` and `false`. For example:
/// or the boolean values `true` or `false`. For example:
///
/// "/instance_id": { "string_value": { "value": "my-instance" } }
/// "/http/request_bytes": { "int_value": 300 }
Expand Down Expand Up @@ -1909,8 +1914,7 @@ public sealed partial class MessageEvent : pb::IMessage<MessageEvent>
private long id_;
/// <summary>
/// An identifier for the MessageEvent's message that can be used to match
/// SENT and RECEIVED MessageEvents. It is recommended to be unique within
/// a Span.
/// `SENT` and `RECEIVED` MessageEvents.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Expand Down Expand Up @@ -1940,8 +1944,9 @@ public sealed partial class MessageEvent : pb::IMessage<MessageEvent>
public const int CompressedSizeBytesFieldNumber = 4;
private long compressedSizeBytes_;
/// <summary>
/// The number of compressed bytes sent or received. If missing assumed to
/// be the same size as uncompressed.
/// The number of compressed bytes sent or received. If missing, the
/// compressed size is assumed to be the same size as the uncompressed
/// size.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Expand Down Expand Up @@ -2513,7 +2518,7 @@ public sealed partial class Link : pb::IMessage<Link>
public const int TraceIdFieldNumber = 1;
private string traceId_ = "";
/// <summary>
/// The [TRACE_ID] for a trace within a project.
/// The `[TRACE_ID]` for a trace within a project.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Expand All @@ -2528,7 +2533,7 @@ public sealed partial class Link : pb::IMessage<Link>
public const int SpanIdFieldNumber = 2;
private string spanId_ = "";
/// <summary>
/// The [SPAN_ID] for a span within a trace.
/// The `[SPAN_ID]` for a span within a trace.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Expand Down Expand Up @@ -2558,8 +2563,8 @@ public sealed partial class Link : pb::IMessage<Link>
public const int AttributesFieldNumber = 4;
private global::Google.Cloud.Trace.V2.Span.Types.Attributes attributes_;
/// <summary>
/// A set of attributes on the link. You have have up to 32 attributes per
/// link.
/// A set of attributes on the link. Up to 32 attributes can be
/// specified per link.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Expand Down Expand Up @@ -3043,7 +3048,7 @@ public sealed partial class Links : pb::IMessage<Links>
}

/// <summary>
/// The allowed types for [VALUE] in a `[KEY]:[VALUE]` attribute.
/// The allowed types for `[VALUE]` in a `[KEY]:[VALUE]` attribute.
/// </summary>
public sealed partial class AttributeValue : pb::IMessage<AttributeValue>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Expand Down Expand Up @@ -3694,9 +3699,10 @@ public sealed partial class StackFrame : pb::IMessage<StackFrame>
public const int OriginalFunctionNameFieldNumber = 2;
private global::Google.Cloud.Trace.V2.TruncatableString originalFunctionName_;
/// <summary>
/// An un-mangled function name, if `function_name` is
/// [mangled](http://www.avabodh.com/cxxin/namemangling.html). The name can
/// be fully-qualified (up to 1024 bytes).
/// An un-mangled function name, if `function_name` is mangled.
/// To get information about name mangling, run
/// [this search](https://www.google.com/search?q=cxx+name+mangling).
/// The name can be fully-qualified (up to 1024 bytes).
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Expand Down

0 comments on commit be4bdf1

Please sign in to comment.