JuliusBrussee/caveman · error

telemetry attribute %q exceeds %d bytes

Error message

telemetry attribute %q exceeds %d bytes

What it means

Error "telemetry attribute %q exceeds %d bytes" thrown in JuliusBrussee/caveman.

Source

Thrown at shared/platform/telemetry/span.go:268

	keys := make([]string, 0, len(attrs))
	for key := range attrs {
		if AttributeAllowed(key) {
			keys = append(keys, key)
		}
	}
	if len(keys) > MaxAttributes {
		return nil, fmt.Errorf("telemetry attributes exceed %d keys", MaxAttributes)
	}
	sort.Strings(keys)
	out := make(map[string]string, len(keys))
	total := 0
	for _, key := range keys {
		value := attrs[key]
		if len(key) > MaxAttributeKeyBytes {
			return nil, fmt.Errorf("telemetry attribute key exceeds %d bytes", MaxAttributeKeyBytes)
		}
		if len(value) > MaxAttributeValueBytes {
			return nil, fmt.Errorf("telemetry attribute %q exceeds %d bytes", key, MaxAttributeValueBytes)
		}
		total += len(key) + len(value)
		if total > MaxAttributesBytes {
			return nil, fmt.Errorf("telemetry attributes exceed %d bytes", MaxAttributesBytes)
		}
		out[key] = value
	}
	return out, nil
}

View on GitHub (pinned to 27d5a3981a)

Solutions

  1. Shorten the telemetry attribute value below the byte limit.

When it happens

Trigger: Thrown at shared/platform/telemetry/span.go:268 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of JuliusBrussee/caveman@27d5a3981a (2026-08-15). Data as JSON: /api/errors/aa8808fee0d0a702. Report an issue: GitHub.