Index
QuotaController
(interface)ServiceController
(interface)AllocateQuotaRequest
(message)AllocateQuotaResponse
(message)CheckError
(message)CheckError.Code
(enum)CheckRequest
(message)CheckResponse
(message)CheckResponse.CheckInfo
(message)CheckResponse.ConsumerInfo
(message)CheckResponse.ConsumerInfo.ConsumerType
(enum)Distribution
(message)Distribution.ExplicitBuckets
(message)Distribution.ExponentialBuckets
(message)Distribution.LinearBuckets
(message)HttpRequest
(message)LogEntry
(message)LogEntryOperation
(message)LogEntrySourceLocation
(message)MetricValue
(message)MetricValueSet
(message)Operation
(message)Operation.Importance
(enum)QuotaError
(message)QuotaError.Code
(enum)QuotaOperation
(message)QuotaOperation.QuotaMode
(enum)ReportRequest
(message)ReportResponse
(message)ReportResponse.ReportError
(message)TraceSpan
(message)TraceSpan.AttributeValue
(message)TraceSpan.Attributes
(message)TraceSpan.SpanKind
(enum)TruncatableString
(message)
QuotaController
Allows clients to allocate and release quota against a managed service.
AllocateQuota | |
---|---|
Attempts to allocate quota for the specified consumer. It should be called before the operation is executed. This method requires the NOTE: The client must fail-open on server errors
|
ServiceController
Lets clients check and report operations against a managed service.
Check | |
---|---|
Checks whether an operation on a service should be allowed to proceed based on the configuration of the service and related policies. It must be called before the operation is executed. If feasible, the client should cache the check results and reuse them for 60 seconds. In case of any server errors, the client should rely on the cached results for much longer time to avoid outage. WARNING: There is general 60s delay for the configuration and policy propagation, therefore callers MUST NOT depend on the NOTE: the This method requires the
|
Report | |
---|---|
Reports operation results to Google Service Control, such as logs and metrics. It should be called after an operation is completed. If feasible, the client should aggregate reporting data for up to 5 seconds to reduce API traffic. Limiting aggregation to 5 seconds is to reduce data loss during client crashes. Clients should carefully choose the aggregation time window to avoid data loss risk more than 0.01% for business and compliance reasons. NOTE: the This method requires the
|
AllocateQuotaRequest
Request message for the AllocateQuota method.
Fields | |
---|---|
service_name |
Name of the service as specified in the service configuration. For example, See Authorization requires the following IAM permission on the specified resource
|
allocate_operation |
Operation that describes the quota allocation. |
service_config_id |
Specifies which version of service configuration should be used to process the request. If unspecified or no matching version can be found, the latest one will be used. |
AllocateQuotaResponse
Response message for the AllocateQuota method.
Fields | |
---|---|
operation_id |
The same operation_id value used in the AllocateQuotaRequest. Used for logging and diagnostics purposes. |
allocate_errors[] |
Indicates the decision of the allocate. |
quota_metrics[] |
Quota metrics to indicate the result of allocation. Depending on the request, one or more of the following metrics will be included:
|
service_config_id |
ID of the actual config used to process the request. |
CheckError
Defines the errors to be returned in google.api.servicecontrol.v1.CheckResponse.check_errors
.
Fields | |
---|---|
code |
The error code. |
subject |
Subject to whom this error applies. See the specific code enum for more details on this field. For example:
|
detail |
Free-form text providing details on the error cause of the error. |
status |
Contains public information about the check error. If available, |
Code
Error codes for Check responses.
Enums | |
---|---|
ERROR_CODE_UNSPECIFIED |
This is never used in CheckResponse . |
NOT_FOUND |
The consumer's project id, network container, or resource container was not found. Same as google.rpc.Code.NOT_FOUND . |
PERMISSION_DENIED |
The consumer doesn't have access to the specified resource. Same as google.rpc.Code.PERMISSION_DENIED . |
RESOURCE_EXHAUSTED |
Quota check failed. Same as google.rpc.Code.RESOURCE_EXHAUSTED . |
SERVICE_NOT_ACTIVATED |
The consumer hasn't activated the service. |
BILLING_DISABLED |
The consumer cannot access the service because billing is disabled. |
PROJECT_DELETED |
The consumer's project has been marked as deleted (soft deletion). |
PROJECT_INVALID |
The consumer's project number or id does not represent a valid project. |
CONSUMER_INVALID |
The input consumer info does not represent a valid consumer folder or organization. |
IP_ADDRESS_BLOCKED |
The IP address of the consumer is invalid for the specific consumer project. |
REFERER_BLOCKED |
The referer address of the consumer request is invalid for the specific consumer project. |
CLIENT_APP_BLOCKED |
The client application of the consumer request is invalid for the specific consumer project. |
API_TARGET_BLOCKED |
The API targeted by this request is invalid for the specified consumer project. |
API_KEY_INVALID |
The consumer's API key is invalid. |
API_KEY_EXPIRED |
The consumer's API Key has expired. |
API_KEY_NOT_FOUND |
The consumer's API Key was not found in config record. |
INVALID_CREDENTIAL |
The credential in the request can not be verified. |
NAMESPACE_LOOKUP_UNAVAILABLE |
The backend server for looking up project id/number is unavailable. |
SERVICE_STATUS_UNAVAILABLE |
The backend server for checking service status is unavailable. |
BILLING_STATUS_UNAVAILABLE |
The backend server for checking billing status is unavailable. |
CLOUD_RESOURCE_MANAGER_BACKEND_UNAVAILABLE |
Cloud Resource Manager backend server is unavailable. |
CheckRequest
Request message for the Check method.
Fields | |
---|---|
service_name |
The service name as specified in its service configuration. For example, See google.api.Service for the definition of a service name. Authorization requires the following IAM permission on the specified resource
|
operation |
The operation to be checked. |
service_config_id |
Specifies which version of service configuration should be used to process the request. If unspecified or no matching version can be found, the latest one will be used. |
CheckResponse
Response message for the Check method.
Fields | |
---|---|
operation_id |
The same operation_id value used in the |
check_errors[] |
Indicate the decision of the check. If no check errors are present, the service should process the operation. Otherwise the service should use the list of errors to determine the appropriate action. |
service_config_id |
The actual config id used to process the request. |
service_rollout_id |
The current service rollout id used to process the request. |
check_info |
Feedback data returned from the server during processing a Check request. |
CheckInfo
Contains additional information about the check operation.
Fields | |
---|---|
unused_arguments[] |
A list of fields and label keys that are ignored by the server. The client doesn't need to send them for following requests to improve performance and allow better aggregation. |
consumer_info |
Consumer info of this check. |
ConsumerInfo
ConsumerInfo
provides information about the consumer.
Fields | |
---|---|
project_number |
The Google cloud project number, e.g. 1234567890. A value of 0 indicates no project number is found. NOTE: This field is deprecated after Chemist support flexible consumer id. New code should not depend on this field anymore. |
type |
The type of the consumer which should have been defined in Google Resource Manager. |
consumer_number |
The consumer identity number, can be Google cloud project number, folder number or organization number e.g. 1234567890. A value of 0 indicates no consumer number is found. |
ConsumerType
The type of the consumer as defined in Google Resource Manager.
Enums | |
---|---|
CONSUMER_TYPE_UNSPECIFIED |
This is never used. |
PROJECT |
The consumer is a Google Cloud Project. |
FOLDER |
The consumer is a Google Cloud Folder. |
ORGANIZATION |
The consumer is a Google Cloud Organization. |
SERVICE_SPECIFIC |
Service-specific resource container which is defined by the service producer to offer their users the ability to manage service control functionalities at a finer level of granularity than the PROJECT. |
Distribution
Distribution represents a frequency distribution of double-valued sample points. It contains the size of the population of sample points plus additional optional information:
- the arithmetic mean of the samples
- the minimum and maximum of the samples
- the sum-squared-deviation of the samples, used to compute variance
- a histogram of the values of the sample points
Fields | ||
---|---|---|
count |
The total number of samples in the distribution. Must be >= 0. |
|
mean |
The arithmetic mean of the samples in the distribution. If |
|
minimum |
The minimum of the population of values. Ignored if |
|
maximum |
The maximum of the population of values. Ignored if |
|
sum_of_squared_deviation |
The sum of squared deviations from the mean: Sum[i=1..count]((x_i - mean)^2) where each x_i is a sample values. If |
|
bucket_counts[] |
The number of samples in each histogram bucket. The buckets are defined below in Any suffix of trailing zeros may be omitted. |
|
exemplars[] |
Example points. Must be in increasing order of |
|
Union field Buckets are numbered in the range of [0, N], with a total of N+1 buckets. There must be at least two buckets (a single-bucket histogram gives no information that isn't already provided by The first bucket is the underflow bucket which has a lower bound of -inf. The last bucket is the overflow bucket which has an upper bound of +inf. All other buckets (if any) are called "finite" buckets because they have finite lower and upper bounds. As described below, there are three ways to define the finite buckets. (1) Buckets with constant width. (2) Buckets with exponentially growing widths. (3) Buckets with arbitrary user-provided widths. In all cases, the buckets cover the entire real number line (-inf, +inf). Bucket upper bounds are exclusive and lower bounds are inclusive. The upper bound of the underflow bucket is equal to the lower bound of the smallest finite bucket; the lower bound of the overflow bucket is equal to the upper bound of the largest finite bucket. |
||
linear_buckets |
Buckets with constant width. |
|
exponential_buckets |
Buckets with exponentially growing width. |
|
explicit_buckets |
Buckets with arbitrary user-provided width. |
ExplicitBuckets
Describing buckets with arbitrary user-provided width.
Fields | |
---|---|
bounds[] |
'bound' is a list of strictly increasing boundaries between buckets. Note that a list of length N-1 defines N buckets because of fenceposting. See comments on The i'th finite bucket covers the interval [bound[i-1], bound[i]) where i ranges from 1 to bound_size() - 1. Note that there are no finite buckets at all if 'bound' only contains a single element; in that special case the single bound defines the boundary between the underflow and overflow buckets. bucket number lower bound upper bound i == 0 (underflow) -inf bound[i] 0 < i < bound_size() bound[i-1] bound[i] i == bound_size() (overflow) bound[i-1] +inf |
ExponentialBuckets
Describing buckets with exponentially growing width.
Fields | |
---|---|
num_finite_buckets |
The number of finite buckets. With the underflow and overflow buckets, the total number of buckets is |
growth_factor |
The i'th exponential bucket covers the interval [scale * growth_factor^(i-1), scale * growth_factor^i) where i ranges from 1 to num_finite_buckets inclusive. Must be larger than 1.0. |
scale |
The i'th exponential bucket covers the interval [scale * growth_factor^(i-1), scale * growth_factor^i) where i ranges from 1 to num_finite_buckets inclusive. Must be > 0. |
LinearBuckets
Describing buckets with constant width.
Fields | |
---|---|
num_finite_buckets |
The number of finite buckets. With the underflow and overflow buckets, the total number of buckets is |
width |
The i'th linear bucket covers the interval [offset + (i-1) * width, offset + i * width) where i ranges from 1 to num_finite_buckets, inclusive. Must be strictly positive. |
offset |
The i'th linear bucket covers the interval [offset + (i-1) * width, offset + i * width) where i ranges from 1 to num_finite_buckets, inclusive. |
HttpRequest
A common proto for logging HTTP requests. Only contains semantics defined by the HTTP specification. Product-specific logging information MUST be defined in a separate message.
Fields | |
---|---|
request_method |
The request method. Examples: |
request_url |
The scheme (http, https), the host name, the path, and the query portion of the URL that was requested. Example: |
request_size |
The size of the HTTP request message in bytes, including the request headers and the request body. |
status |
The response code indicating the status of the response. Examples: 200, 404. |
response_size |
The size of the HTTP response message sent back to the client, in bytes, including the response headers and the response body. |
user_agent |
The user agent sent by the client. Example: |
remote_ip |
The IP address (IPv4 or IPv6) of the client that issued the HTTP request. Examples: |
server_ip |
The IP address (IPv4 or IPv6) of the origin server that the request was sent to. |
referer |
The referer URL of the request, as defined in HTTP/1.1 Header Field Definitions. |
latency |
The request processing latency on the server, from the time the request was received until the response was sent. |
cache_lookup |
Whether or not a cache lookup was attempted. |
cache_hit |
Whether or not an entity was served from cache (with or without validation). |
cache_validated_with_origin_server |
Whether or not the response was validated with the origin server before being served from cache. This field is only meaningful if |
cache_fill_bytes |
The number of HTTP response bytes inserted into cache. Set only when a cache fill was attempted. |
protocol |
Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket" |
LogEntry
An individual log entry.
Fields | ||
---|---|---|
name |
Required. The log to which this log entry belongs. Examples: |
|
timestamp |
The time the event described by the log entry occurred. If omitted, defaults to operation start time. |
|
severity |
The severity of the log entry. The default value is |
|
http_request |
Optional. Information about the HTTP request associated with this log entry, if applicable. |
|
trace |
Optional. Resource name of the trace associated with the log entry, if any. If this field contains a relative resource name, you can assume the name is relative to |
|
insert_id |
A unique ID for the log entry used for deduplication. If omitted, the implementation will generate one based on operation_id. |
|
labels |
A set of user-defined (key, value) data that provides additional information about the log entry. |
|
operation |
Optional. Information about an operation associated with the log entry, if applicable. |
|
source_location |
Optional. Source code location information associated with the log entry, if any. |
|
Union field payload . The log entry payload, which can be one of multiple types. payload can be only one of the following: |
||
proto_payload |
The log entry payload, represented as a protocol buffer that is expressed as a JSON object. The only accepted type currently is |
|
text_payload |
The log entry payload, represented as a Unicode string (UTF-8). |
|
struct_payload |
The log entry payload, represented as a structure that is expressed as a JSON object. |
LogEntryOperation
Additional information about a potentially long-running operation with which a log entry is associated.
Fields | |
---|---|
id |
Optional. An arbitrary operation identifier. Log entries with the same identifier are assumed to be part of the same operation. |
producer |
Optional. An arbitrary producer identifier. The combination of |
first |
Optional. Set this to True if this is the first log entry in the operation. |
last |
Optional. Set this to True if this is the last log entry in the operation. |
LogEntrySourceLocation
Additional information about the source code location that produced the log entry.
Fields | |
---|---|
file |
Optional. Source file name. Depending on the runtime environment, this might be a simple name or a fully-qualified name. |
line |
Optional. Line within the source file. 1-based; 0 indicates no line number available. |
function |
Optional. Human-readable name of the function or method being invoked, with optional context such as the class or package name. This information may be used in contexts such as the logs viewer, where a file and line number are less meaningful. The format can vary by language. For example: |
MetricValue
Represents a single metric value.
Fields | ||
---|---|---|
labels |
The labels describing the metric value. See comments on |
|
start_time |
The start of the time period over which this metric value's measurement applies. The time period has different semantics for different metric types (cumulative, delta, and gauge). See the metric definition documentation in the service configuration for details. If not specified, |
|
end_time |
The end of the time period over which this metric value's measurement applies. If not specified, |
|
Union field value . The value. The type of value used in the request must agree with the metric definition in the service configuration, otherwise the MetricValue is rejected. value can be only one of the following: |
||
bool_value |
A boolean value. |
|
int64_value |
A signed 64-bit integer value. |
|
double_value |
A double precision floating point value. |
|
string_value |
A text string value. |
|
distribution_value |
A distribution value. |
MetricValueSet
Represents a set of metric values in the same metric. Each metric value in the set should have a unique combination of start time, end time, and label values.
Fields | |
---|---|
metric_name |
The metric name defined in the service configuration. |
metric_values[] |
The values in this metric. |
Operation
Represents information regarding an operation.
Fields | |
---|---|
operation_id |
Identity of the operation. This must be unique within the scope of the service that generated the operation. If the service calls Check() and Report() on the same operation, the two calls should carry the same id. UUID version 4 is recommended, though not required. In scenarios where an operation is computed from existing information and an idempotent id is desirable for deduplication purpose, UUID version 5 is recommended. See RFC 4122 for details. |
operation_name |
Fully qualified name of the operation. Reserved for future use. |
consumer_id |
Identity of the consumer who is using the service. This field should be filled in for the operations initiated by a consumer, but not for service-initiated operations that are not related to a specific consumer.
|
start_time |
Required. Start time of the operation. |
end_time |
End time of the operation. Required when the operation is used in |
labels |
Labels describing the operation. Only the following labels are allowed:
|
metric_value_sets[] |
Represents information about this operation. Each MetricValueSet corresponds to a metric defined in the service configuration. The data type used in the MetricValueSet must agree with the data type specified in the metric definition. Within a single operation, it is not allowed to have more than one MetricValue instances that have the same metric names and identical label value combinations. If a request has such duplicated MetricValue instances, the entire request is rejected with an invalid argument error. |
log_entries[] |
Represents information to be logged. |
importance |
DO NOT USE. This is an experimental field. |
user_labels |
Private Preview. This feature is only available for approved services. User defined labels for the resource that this operation is associated with. Only a combination of 1000 user labels per consumer project are allowed. |
trace_spans[] |
Unimplemented. A list of Cloud Trace spans. The span names shall contain the id of the destination project which can be either the produce or the consumer project. |
extensions[] |
Unimplemented. |
Importance
Defines the importance of the data contained in the operation.
Enums | |
---|---|
LOW |
Allows data caching, batching, and aggregation. It provides higher performance with higher data loss risk. |
HIGH |
Disables data aggregation to minimize data loss. It is for operations that contains significant monetary value or audit trail. This feature only applies to the client libraries. |
QuotaError
Represents error information for QuotaOperation
.
Fields | |
---|---|
code |
Error code. |
subject |
Subject to whom this error applies. See the specific enum for more details on this field. For example, "clientip: |
description |
Free-form text that provides details on the cause of the error. |
status |
Contains additional information about the quota error. If available, |
Code
Error codes related to project config validations are deprecated since the quota controller methods do not perform these validations. Instead services have to call the Check method, without quota_properties field, to perform these validations before calling the quota controller methods. These methods check only for project deletion to be wipe out compliant.
Enums | |
---|---|
UNSPECIFIED |
This is never used. |
RESOURCE_EXHAUSTED |
Quota allocation failed. Same as google.rpc.Code.RESOURCE_EXHAUSTED . |
BILLING_NOT_ACTIVE |
Consumer cannot access the service because the service requires active billing. |
PROJECT_DELETED |
Consumer's project has been marked as deleted (soft deletion). |
API_KEY_INVALID |
Specified API key is invalid. |
API_KEY_EXPIRED |
Specified API Key has expired. |
QuotaOperation
Represents information regarding a quota operation.
Fields | |
---|---|
operation_id |
Identity of the operation. This is expected to be unique within the scope of the service that generated the operation, and guarantees idempotency in case of retries. In order to ensure best performance and latency in the Quota backends, operation_ids are optimally associated with time, so that related operations can be accessed fast in storage. For this reason, the recommended token for services that intend to operate at a high QPS is Unix time in nanos + UUID |
method_name |
Fully qualified name of the API method for which this quota operation is requested. This name is used for matching quota rules or metric rules and billing status rules defined in service configuration. This field should not be set if any of the following is true: (1) the quota operation is performed on non-API resources. (2) quota_metrics is set because the caller is doing quota override. Example of an RPC method name: google.example.library.v1.LibraryService.CreateShelf |
consumer_id |
Identity of the consumer for whom this quota operation is being performed. This can be in one of the following formats: project: |
labels |
Labels describing the operation. |
quota_metrics[] |
Represents information about this operation. Each MetricValueSet corresponds to a metric defined in the service configuration. The data type used in the MetricValueSet must agree with the data type specified in the metric definition. Within a single operation, it is not allowed to have more than one MetricValue instances that have the same metric names and identical label value combinations. If a request has such duplicated MetricValue instances, the entire request is rejected with an invalid argument error. This field is mutually exclusive with method_name. |
quota_mode |
Quota mode for this operation. |
QuotaMode
Supported quota modes.
Enums | |
---|---|
UNSPECIFIED |
Guard against implicit default. Must not be used. |
NORMAL |
For AllocateQuota request, allocates quota for the amount specified in the service configuration or specified using the quota metrics. If the amount is higher than the available quota, allocation error will be returned and no quota will be allocated. If multiple quotas are part of the request, and one fails, none of the quotas are allocated or released. |
BEST_EFFORT |
The operation allocates quota for the amount specified in the service configuration or specified using the quota metrics. If the amount is higher than the available quota, request does not fail but all available quota will be allocated. For rate quota, BEST_EFFORT will continue to deduct from other groups even if one does not have enough quota. For allocation, it will find the minimum available amount across all groups and deduct that amount from all the affected groups. |
CHECK_ONLY |
For AllocateQuota request, only checks if there is enough quota available and does not change the available quota. No lock is placed on the available quota either. |
QUERY_ONLY |
Unimplemented. When used in AllocateQuotaRequest, this returns the effective quota limit(s) in the response, and no quota check will be performed. Not supported for other requests, and even for AllocateQuotaRequest, this is currently supported only for allowlisted services. |
ADJUST_ONLY |
The operation allocates quota for the amount specified in the service configuration or specified using the quota metrics. If the requested amount is higher than the available quota, request does not fail and remaining quota would become negative (going over the limit). Not supported for Rate Quota. |
ReportRequest
Request message for the Report method.
Fields | |
---|---|
service_name |
The service name as specified in its service configuration. For example, See google.api.Service for the definition of a service name. Authorization requires the following IAM permission on the specified resource
|
operations[] |
Operations to be reported. Typically the service should report one operation per request. Putting multiple operations into a single request is allowed, but should be used only when multiple operations are natually available at the time of the report. There is no limit on the number of operations in the same ReportRequest, however the ReportRequest size should be no larger than 1MB. See |
service_config_id |
Specifies which version of service config should be used to process the request. If unspecified or no matching version can be found, the latest one will be used. |
ReportResponse
Response message for the Report method.
Fields | |
---|---|
report_errors[] |
Partial failures, one for each
|
service_config_id |
The actual config id used to process the request. |
service_rollout_id |
The current service rollout id used to process the request. |
ReportError
Represents the processing error of one Operation
in the request.
Fields | |
---|---|
operation_id |
The |
status |
Details of the error when processing the |
TraceSpan
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 gaps or overlaps between spans in a trace.
Fields | |
---|---|
name |
The resource name of the span in the following format:
[TRACE_ID] is a unique identifier for a trace within a project; it is a 32-character hexadecimal encoding of a 16-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. |
span_id |
The [SPAN_ID] portion of the span's resource name. |
parent_span_id |
The [SPAN_ID] of this span's parent span. If this is a root span, then this field must be empty. |
display_name |
A description of the span's operation (up to 128 bytes). Stackdriver Trace displays the description in the Google Cloud Platform 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. This makes it easier to correlate spans in different traces. |
start_time |
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. |
end_time |
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. |
attributes |
A set of attributes on the span. You can have up to 32 attributes per span. |
status |
An optional final status for this span. |
same_process_as_parent_span |
(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. |
child_span_count |
An optional number of child spans that were generated while this span was active. If set, allows implementation to detect missing child spans. |
span_kind |
Distinguishes between spans generated in a particular context. For example, two spans with the same name may be distinguished using |
AttributeValue
The allowed types for [VALUE] in a [KEY]:[VALUE]
attribute.
Fields | ||
---|---|---|
Union field value . The type of the value. value can be only one of the following: |
||
string_value |
A string up to 256 bytes long. |
|
int_value |
A 64-bit signed integer. |
|
bool_value |
A Boolean value represented by |
Attributes
A set of attributes, each in the format [KEY]:[VALUE]
.
Fields | |
---|---|
attribute_map |
The 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
|
dropped_attributes_count |
The number of attributes that were discarded. Attributes can be discarded because their keys are too long or because there are too many attributes. If this value is 0 then all attributes are valid. |
SpanKind
Type of span. Can be used to specify additional relationships between spans in addition to a parent/child relationship.
Enums | |
---|---|
SPAN_KIND_UNSPECIFIED |
Unspecified. Do NOT use as default. Implementations MAY assume SpanKind.INTERNAL to be default. |
INTERNAL |
Indicates that the span is used internally. Default value. |
SERVER |
Indicates that the span covers server-side handling of an RPC or other remote network request. |
CLIENT |
Indicates that the span covers the client-side wrapper around an RPC or other remote request. |
PRODUCER |
Indicates that the span describes producer sending a message to a broker. Unlike client and server, there is no direct critical path latency relationship between producer and consumer spans (e.g. publishing a message to a pubsub service). |
CONSUMER |
Indicates that the span describes consumer receiving a message from a broker. Unlike client and server, there is no direct critical path latency relationship between producer and consumer spans (e.g. receiving a message from a pubsub service subscription). |
TruncatableString
Represents a string that might be shortened to a specified length.
Fields | |
---|---|
value |
The shortened string. For example, if the original string is 500 bytes long and the limit of the string is 128 bytes, then Truncation always happens on a UTF8 character boundary. If there are multi-byte characters in the string, then the length of the shortened string might be less than the size limit. |
truncated_byte_count |
The number of bytes removed from the original string. If this value is 0, then the string was not shortened. |