You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
spored tracing: xray exporter has no IAM grant on the spored role; spawn:tracing-endpoint is read but unused #1335
spored's tracing has two settings that cannot work on a spawn-launched instance, so #1308's --tracing flags expose neither:
The xray exporter has no permission.pkg/observability/tracing/exporters/xray.go calls xray:PutTraceSegments with the instance's credentials. Nothing in spawn grants it: grep -rni xray pkg/aws/ finds nothing (the only grant in the repo is SAM's for deployment/cloudformation/spore-bot.yaml). spored's own default exporter is xray (pkg/observability.DefaultConfig). So tracing on with no exporter tag would drop every span. No launch path can set spored's metrics/tracing/idle-cpu tags (launch flags or --tag allow-list) #1308 always writes spawn:tracing-exporter=stdout and refuses --tracing-exporter xray with that reason.
spawn:tracing-endpoint is read and used by nothing.pkg/provider/ec2.go reads it into TracingConfig.Endpoint. That field's only appearance is its declaration in pkg/observability/config.go, and tracing.NewTracer never reads it. It stays on externallyWrittenTags in tag_contract_test.go, and No launch path can set spored's metrics/tracing/idle-cpu tags (launch flags or --tag allow-list) #1308 added no flag for it.
Options for (1): add xray:PutTraceSegments (+ xray:PutTelemetryRecords) to the spored role spawn provisions, so users never add it by hand. Prove it with a real PutRolePolicy, then let --tracing-exporter xray through. Or drop the xray exporter. Options for (2): wire an OTLP exporter that uses the endpoint, or remove the tag reader.
Activity