Skip to content

Update legacy Cloud Trace exporter attribute and span limits to match backend - #567

Merged
aabmass merged 1 commit into
GoogleCloudPlatform:mainfrom
aabmass:push-uqmvsmotunqx
Aug 12, 2026
Merged

Update legacy Cloud Trace exporter attribute and span limits to match backend#567
aabmass merged 1 commit into
GoogleCloudPlatform:mainfrom
aabmass:push-uqmvsmotunqx

Conversation

@aabmass

@aabmass aabmass commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

The Cloud Trace backend attribute and size limits have been updated to align with the OpenTelemetry OTLP Telemetry limits (https://cloud.google.com/trace/docs/quotas#telemetry-limits).

This PR updates the legacy Cloud Trace exporter constants and truncation bounds accordingly:

  • MAX_SPAN_ATTRS: 32 -> 1024
  • MAX_LINK_ATTRS: 32 -> 1024
  • MAX_EVENT_ATTRS: 4 -> 1024
  • MAX_NUM_EVENTS: 32 -> 256
  • MAX_ATTR_KEY_BYTES: 128 -> 512
  • MAX_ATTR_VAL_BYTES: 16 KiB -> 64 KiB
  • Span name display length limit: 128 -> 1024
  • Event name description length limit: 256 -> 1024

… backend

The Cloud Trace backend attribute and size limits have been updated to align with the OpenTelemetry OTLP Telemetry limits (https://cloud.google.com/trace/docs/quotas#telemetry-limits).

This PR updates the legacy Cloud Trace exporter constants and truncation bounds accordingly:
- `MAX_SPAN_ATTRS`: 32 -> 1024
- `MAX_LINK_ATTRS`: 32 -> 1024
- `MAX_EVENT_ATTRS`: 4 -> 1024
- `MAX_NUM_EVENTS`: 32 -> 256
- `MAX_ATTR_KEY_BYTES`: 128 -> 512
- `MAX_ATTR_VAL_BYTES`: 16 KiB -> 64 KiB
- Span name display length limit: 128 -> 1024
- Event name description length limit: 256 -> 1024
@aabmass
aabmass marked this pull request as ready for review August 12, 2026 02:36
@aabmass
aabmass requested a review from a team as a code owner August 12, 2026 02:36
@aabmass
aabmass requested a review from psx95 August 12, 2026 02:36
@aabmass

aabmass commented Aug 12, 2026

Copy link
Copy Markdown
Collaborator Author

Go/collector version GoogleCloudPlatform/opentelemetry-operations-go#1186

@aabmass

aabmass commented Aug 12, 2026

Copy link
Copy Markdown
Collaborator Author

I'm merging now, and we'll do the release later

@aabmass
aabmass merged commit bfcdd10 into GoogleCloudPlatform:main Aug 12, 2026
27 checks passed
@aabmass
aabmass deleted the push-uqmvsmotunqx branch August 12, 2026 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants