Open darrelldraney opened 7 months ago
Any customization of attributes on spans is considered licensed functionality at this time.
Telemetry is a huge part of the Router, and has had both a significant amount of effort spent on it, but also needs further investment.
By making telemetry customization a commercial feature, we can demonstrate the need to allocate more resources to this area.
We will leave this ticket open for now to track demand from free users.
Hi, I also wanted to add custom header's x-requests-id: uuid4
value to logs but as you said it is a paid feature. I tried to use standard trace_id functionality but it does not accept uuid4 values.
Talking about this one:
if let Some(from_request_header) = &propagation.request.header_name {
propagators.push(Box::new(CustomTraceIdPropagator::new(
from_request_header.to_string(),
)));
}
Being able to just pass my custom header value as a json logs field would be just awesome!
Linking issues here, this is also related and could be a general solution: https://github.com/apollographql/router/issues/5212
Using router version 1.37.0 with the below configuration to include trace_id in logs for correlation with traces returns an error.
Error on start up is:
This seems to indicate that including the trace_id in logs requires a license. The documentation seems to indicate custom attributes requires a license:
Is this a bug, or Is trace_id considered a custom attribute, and there is no way to correlate logs with traces without a license?