added open telementry#376
Conversation
GitLab Pipeline ActionGeneral informationLink to pipeline: https://gitlab.com/code0-tech/development/aquila/-/pipelines/2655731025 Status: Passed Job summariesdocs:previewDocumentation preview available at https://code0-tech.gitlab.io/-/development/telescopium/-/jobs/15202367521/artifacts/out/index.html |
|
|
||
| errors::enable_backtraces(); | ||
| let resource = Resource::builder() | ||
| .with_service_name(env!("CARGO_PKG_NAME")) |
There was a problem hiding this comment.
Where does this env variable come from? I'm also not sure if this should be part of the configuration, so you can override the service name if needed.
There was a problem hiding this comment.
This is indirectly set by the field name inside of the Cargo.toml => in this case its aquila
| let resource = Resource::builder() | ||
| .with_service_name(env!("CARGO_PKG_NAME")) | ||
| .with_attributes([ | ||
| KeyValue::new("service.version", env!("CARGO_PKG_VERSION")), |
There was a problem hiding this comment.
Where does this env variable come from? Does this mean that we need to have the correct version number in the Cargo.toml before the build? (Which is the source of our caching problem)
There was a problem hiding this comment.
Here applies the same logic as with name
| # OTLP export for logs, traces, and the deliberately small metric set. | ||
| telemetry: | ||
| enabled: false | ||
| endpoint: http://localhost:4317 |
There was a problem hiding this comment.
Can we separate this into three settings? (Logs, Metrics, Traces)
Resolves: #353