vectordotdev/vector · error
Traces are not supported.
Error message
Traces are not supported.
What it means
The AWS EC2 Metadata transform panics if it receives an Event::Trace, since it only transforms logs and metrics (annotating them with instance metadata). Trace events are unsupported by design and the panic makes that explicit instead of silently passing them through. This is an event-type routing problem in the topology.
Solutions
- Remove aws_ec2_metadata from the trace event path in the topology
- Insert a filter/route so only log and metric events reach the transform
- If traces need enrichment, use a trace-capable transform instead
Example fix
// before [transforms.ec2_meta] type = "aws_ec2_metadata" inputs = ["everything"] // after [transforms.ec2_meta] type = "aws_ec2_metadata" inputs = ["route.logs_and_metrics"]
Defensive patterns
Strategy: validation
Validate before calling
// Filter out traces before the transform inputs.iter().for_each(|e| assert!(!matches!(e, Event::Trace(_)), "aws_ec2_metadata does not accept trace events"));
Type guard
fn is_trace(e: &Event) -> bool { matches!(e, Event::Trace(_)) } Prevention
- Only feed logs/metrics into aws_ec2_metadata
- Use route/filter transforms to split traces out of mixed streams
- Check component docs for supported event classes before wiring
When it happens
Trigger: Wiring a traces-producing source (e.g. datadog_agent with traces, opentelemetry traces) into the aws_ec2_metadata transform's inputs; a route/filter passing trace events through to this transform.
Common situations: Users add the EC2 metadata enrichment transform to a catch-all pipeline that also carries traces, assuming it passes unknown event types through untouched.
Understand the failure class
Background: UnsupportedOperationException and "is not supported" errors: when a library deliberately refuses a call — this error's family across 30 libraries.
Related errors
- Called `Transform::into_task` on something that was not a…
- `duration` should be an i64
- `error` should be an i64
- error_tps cannot be Nan
- join error or bad poll
AI-assisted analysis of vectordotdev/vector@bdb87aeaa4 (2026-09-16).
Data as JSON: /api/errors/46d3e37af47c844b.
Report an issue: GitHub.
Appendix: source
Thrown at src/transforms/aws_ec2_metadata.rs:338
}
}
impl Ec2MetadataTransform {
fn transform_one(&mut self, mut event: Event) -> Event {
let state = self.state.load();
match event {
Event::Log(ref mut log) => {
state.iter().for_each(|(k, v)| {
log.insert(&k.log_path, v.clone());
});
}
Event::Metric(ref mut metric) => {
state.iter().for_each(|(k, v)| {
metric
.replace_tag(k.metric_tag.clone(), String::from_utf8_lossy(v).to_string());
});
}
Event::Trace(_) => panic!("Traces are not supported."),
}
event
}
}
struct MetadataClient {
client: HttpClient<Body>,
host: Uri,
token: Option<(Bytes, Instant)>,
keys: Keys,
state: Arc<ArcSwap<Vec<(MetadataKey, Bytes)>>>,
refresh_interval: Duration,
refresh_timeout: Duration,
fields: HashSet<String>,
tags: HashSet<String>,
}
#[derive(Debug, Deserialize)]View on GitHub (pinned to bdb87aeaa4)