This document provides quota and limit information for Google Cloud Observability.
For service-specific quota and limit information, see the following documents:

- [Error Reporting quotas and limits](https://docs.cloud.google.com/error-reporting/quotas.md.txt)
- [Cloud Logging quotas and limits](https://docs.cloud.google.com/logging/quotas.md.txt)
- [Cloud Monitoring quotas and limits](https://docs.cloud.google.com/monitoring/quotas.md.txt)
- [Cloud Profiler quotas and limits](https://docs.cloud.google.com/profiler/quotas.md.txt)
- [Cloud Trace quotas and limits](https://docs.cloud.google.com/trace/docs/quotas.md.txt)
- [Telemetry API quotas and limits](https://docs.cloud.google.com/stackdriver/quotas.md.txt#telemetry-api-limits)

  The [Telemetry (OTLP) API](https://docs.cloud.google.com/stackdriver/docs/reference/telemetry/overview.md.txt) implements
  the [OpenTelemetry OTLP specification](https://opentelemetry.io/docs/specs/otlp/) for ingestion
  of data into Google Cloud Observability. After data is ingested, the other
  listed quotas and limits apply as well.

## Observability API limits

This section describes the quotas and limits that apply to the
[Observability API](https://docs.cloud.google.com/stackdriver/docs/reference/api-overview.md.txt#about-obs-api).

| Description | Value | Notes |
|---|---|---|
| Data retention for the `_Trace` bucket | 30 days | Not configurable. |
| Maximum length of the display name of an observability bucket | 100 encoded bytes | Limit. |
| Maximum length of the description of an observability bucket | 1000 encoded bytes | Limit. |
| Maximum number of reprovision operations per observability bucket | 1 | Limit. |
| Maximum linked BigQuery datasets per observability dataset | 1 | Limit. |

## Telemetry API limits

This section describes only the quotas and limits that apply to the
[Telemetry (OTLP) API](https://docs.cloud.google.com/stackdriver/docs/reference/telemetry/overview.md.txt) for ingestion
of trace, metric, and log data:

- [Limits for traces](https://docs.cloud.google.com/stackdriver/quotas.md.txt#telemetry-api-trace-limits)
- [Limits and quotas for metrics](https://docs.cloud.google.com/stackdriver/quotas.md.txt#telemetry-api-metric-limits)
- [Limits and quotas for logs](https://docs.cloud.google.com/stackdriver/quotas.md.txt#telemetry-api-log-limits)

These quotas and limits apply only to the data being ingested by using the
Telemetry API. After data is ingested, the following
quotas and limits apply:

- [Cloud Trace quotas and limits](https://docs.cloud.google.com/trace/docs/quotas.md.txt)
- [Cloud Monitoring quotas and limits](https://docs.cloud.google.com/monitoring/quotas.md.txt)
- [Cloud Logging quotas and limits](https://docs.cloud.google.com/logging/quotas.md.txt)

### Limits for ingestion of traces

This section lists the limits that apply when the Telemetry API
is used to ingest trace data. This API is designed for use with applications
that are instrumented by using one of the [OpenTelemetry SDKs](https://opentelemetry.io/docs/languages/).

| Description | Value | Note |
|---|---|---|
| Maximum size of attribute keys | 512 bytes | Limit. |
| Maximum size of attribute values | 64 KiB | Limit. |
| Maximum size of a `Span`^\*^ object's name | 1024 bytes | Limit. |
| Maximum number of attributes attached to a `Span`^\*^ object | 1024 | Limit. |
| Maximum number of resource attributes per `ResourceSpans`^\*^ object | 1024 | Limit. |
| Maximum number of attributes per `ResourceSpan`^\*^ object Includes attributes attached to child objects of the following types: `Resource`, `Span`, `ScopeSpans`, `Event`, and `Link.` | 8192 | Limit. |
| Maximum number of `Event`^\*^ objects per `Span`^\*^ object | 256 | Limit. |
| Maximum number of `Link`^\*^ objects per `Span`^\*^ object | 128 | Limit. |
| Maximum size of an `Event`^\*^ object's name | 1024 bytes | Limit. |
| Maximum number of attributes per `Event`^\*^ object | 1024 | Limit. |
| Maximum attributes per `Link`^\*^ object | 1024 | Limit. |
| Maximum size of schema URLs | 8192 bytes | Limit. |
| Maximum number of trace-ingestion bytes per minute | 2.4 GB for the following regions: `asia-east1, asia-northeast1, asia-southeast1, asia-south1, europe-west1, europe-west2, europe-west3, europe-west4, us-central1, us-east4, us-west1`. 300 MB for all other regions. | Quota. |

^\*^ For a definition of this structure, see the [`trace.proto`](https://github.com/open-telemetry/opentelemetry-proto/blob/v1.5.0/opentelemetry/proto/trace/v1/trace.proto) file.

The [Cloud Trace quotas and limits](https://docs.cloud.google.com/trace/docs/quotas.md.txt) also
apply when using the Telemetry API for trace ingestion.

### Limits and quotas for ingestion of metrics

This section lists the limits and quotas that apply when the Telemetry API
is used to ingest metric data.

| Description | Value | Note |
|---|---|---|
| Maximum number of datapoints per request | 200 | Limit |
| Maximum number of ResourceMetrics per request | 200 | Limit |
| Maximum number of quantiles per Summary metric | 10 | Limit |
| Number of metric-ingestion requests per minute per region (quota) | 60,000 | Quota |

The [Cloud Monitoring quotas and limits](https://docs.cloud.google.com/monitoring/quotas.md.txt) also
apply when using the Telemetry API for metric ingestion.

### Limits and quotas for ingestion of logs

This section describes the limits and quotas that apply when the
Telemetry API ingests log data.

| Description | Value | Notes |
|---|---|---|
| Maximum number of logs per OTLP request | 8192 | Refers to the maximum number of `logRecords` in an OTLP `resourceLogs` structure. Limit. |
| Maximum size of each request | 5 MiB | Limit. |
| Maximum cumulative size of converted `LogEntry` objects per request | 64 MiB | Includes replicated `Resource` and `InstrumentationScope` metadata per `LogEntry`. Cloud Logging rejects records that exceed this system limit with an `INVALID_ARGUMENT` error. Limit. |
| Maximum size of a [`LogEntry`](https://docs.cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry.md.txt) that is created from an OTLP log record | 256 KiB | Cloud Logging rejects log records whose converted `LogEntry` exceeds this size with an `INVALID_ARGUMENT` error. Limit. |
| Maximum length of an attribute key | 512 B | Applies to `LogRecord`, `Resource`, and `InstrumentationScope` attributes. Cloud Logging rejects oversized keys with an `INVALID_ARGUMENT` error. Limit. |
| Maximum length of an attribute value | 64 KiB | Applies to `LogRecord`, `Resource`, and `InstrumentationScope` attributes. Cloud Logging rejects oversized values with an `INVALID_ARGUMENT` error. Limit. |
| Maximum depth of attribute nesting | 20 | Applies to `LogRecord` and `Resource` attributes. Cloud Logging rejects requests that exceed this depth with an `INVALID_ARGUMENT` error. Limit. |
| Maximum number of resource attributes per `ResourceLogs` object | 1,024 | Cloud Logging rejects log records in `ResourceLogs` objects that exceed this system limit with an `INVALID_ARGUMENT` error. Limit. |
| Maximum size of schema URLs | 8,192 bytes | Applies to `ResourceLogs.schema_url` and `ScopeLogs.schema_url`. Cloud Logging rejects log records with oversized schema URLs with an `INVALID_ARGUMENT` error. Limit. |
| Maximum number of log-ingestion bytes per minute | 2.4 GB for the following regions: `asia-east1, asia-northeast1, asia-southeast1, asia-south1, europe-west1, europe-west2, europe-west3, europe-west4, us-central1, us-east4, us-west1`. 300 MB for all other regions. | Quota. |

The [Cloud Logging quotas and limits](https://docs.cloud.google.com/logging/quotas.md.txt) also apply when the
Telemetry API ingests log data.

## View and manage your quotas

For more information about quotas, including how to view and manage quotas, see
the [Cloud Quotas documentation](https://docs.cloud.google.com/docs/quotas/overview.md.txt).

To view your current quota usage, in the Google Cloud console,
go to **APIs \& Services** or click the following button:

[Go to **APIs \& Services**](https://console.cloud.google.com/apis/dashboard)