Skip to content
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

Merged
merged 5 commits into from
Oct 23, 2023
Merged

Feature/otel trials #10

merged 5 commits into from
Oct 23, 2023

Conversation

akaur13
Copy link
Collaborator

@akaur13 akaur13 commented Oct 19, 2023

Capturing traces telemetry for Chronos using Otel collector with daemon set

@akaur13 akaur13 requested a review from anil0906 October 19, 2023 00:26
.env Outdated Show resolved Hide resolved
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))]

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?

Copy link
Collaborator Author

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

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))

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> {
Copy link
Collaborator Author

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

@akaur13 akaur13 merged commit a097d9c into master Oct 23, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants