-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/otel trials #10
Conversation
948d1e5
to
65ae8de
Compare
65ae8de
to
ab21777
Compare
let new_message = &message; | ||
let headers = required_headers(new_message).expect("parsing headers failed"); | ||
let message_deadline: DateTime<Utc> = DateTime::<Utc>::from_str(&headers[DEADLINE]).expect("String date parsing failed"); | ||
#[instrument(skip_all, fields(correlationId))] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does this fields(correlationId)
do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ID to stitch the consumer of the delay scheduler to the delay process working. This field will be added as an attribute in the trace on which it can be filtered across different app traces
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When annotation processor will be handling this expression, where the value of correlationId
will come from?
global::set_text_map_propagator(TraceContextPropagator::new()); | ||
opentelemetry_otlp::new_pipeline() | ||
.tracing() | ||
.with_exporter(opentelemetry_otlp::new_exporter().http().with_protocol(protocol).with_endpoint(trace_exporter)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are taking protocol as parameter but at the same time calling .http()
. Is this intentional?
OtlpCollector {} | ||
} | ||
|
||
pub fn http_collector_connect(&self, protocol: Protocol) -> Result<sdktrace::Tracer, TraceError> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fmarek-kindred this is a method which is calling the http protocol as per the input
Capturing traces telemetry for Chronos using Otel collector with daemon set