-
Notifications
You must be signed in to change notification settings - Fork 15
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
Instrumentation using OTEL #131
Conversation
9e369a3
to
07dd003
Compare
02b59df
to
d8bce31
Compare
Completed Self Review, resolved OTEL Vars to ENV and Run OTEL only when env var is present. |
929c78e
to
4df6a9a
Compare
f84763e
to
76f0109
Compare
crates/orchestrator/src/telemetry.rs
Outdated
static METER_PROVIDER: Lazy<Arc<SdkMeterProvider>> = Lazy::new(|| { | ||
let meter_provider = init_metric_provider(); | ||
Arc::new(meter_provider) | ||
}); | ||
|
||
static TRACER: Lazy<Arc<Tracer>> = Lazy::new(|| { | ||
let tracer = init_tracer_provider(); | ||
Arc::new(tracer) | ||
}); |
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.
do we need to still store these?
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.
Resolved here.
We have to keep both,
TRACER is used while setting for tracing.
global_meter / METRIC_PROVIDER is needed to get the SdkMetricProvider to be used to shutdown the instrumentation.
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.
discusedd to return these from functions
8ba02e6
to
a4861b1
Compare
* update: telemetry metric + tracing * update: linting and CI fixes * update: otel env * update: run collector only if env is available * update: correcting otel init * update: removed commented instrumentation * update: generalised db_call_type to function_type * update: otel_enabled, tracing_level, removed tracing logs * update: removed queue/batch size setter + STDOUT code * update: added TRACING_LEVEL to env: * update: fn instrumentation name correction * update: simplifying Level from string logic * update: cleaner + generalised impl for Metrics * update: cleaning new analytics approach * update: correct names for recording otel * update: fixing clippy error * update: adding Sigonz Dashboard * update: tests for otel * update: test cases for telemetry * update: PR comments resolved * update: cleaned the analytics level * update: lint fix * update: CI fixed
This PR adds Instrumentation to the orchestrator codebase.
telemetry.rs
containing configs and initialisation files for telemetry data.#instrumentation
is added to almost all the functions, they are yet commented, and will only be uncommented as per tracing demands.config
is always skipped.EDIT