Closed nbuffon closed 1 month ago
@nbuffon , how to finalize these works? I review? We close without merging?
[x] json_counter example works
There are build warnings:
warning: associated function `new` is never used
--> src/transport/mqtt/mqtt_router.rs:33:19
|
32 | impl MqttRouter {
| --------------- associated function in this implementation
33 | pub(crate) fn new() -> MqttRouter {
| ^^^
|
= note: `#[warn(dead_code)]` on by default
warning: `libits-client` (lib) generated 1 warning
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.09s
Running `target/debug/examples/json_counter`
[x] copycat example works
There are build warnings:
warning: function `acceleration_to_etsi` is never used
--> src/exchange/etsi.rs:83:15
|
83 | pub(crate) fn acceleration_to_etsi(m_per_s_2: f64) -> i16 {
| ^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
warning: function `timestamp_from_etsi` is never used
--> src/exchange/etsi.rs:87:15
|
87 | pub(crate) fn timestamp_from_etsi(etsi_timestamp: u64) -> u64 {
| ^^^^^^^^^^^^^^^^^^^
warning: `libits-client` (lib) generated 2 warnings
Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.71s
Running `target/debug/examples/copycat`
[x] telemetry example works
There are build warnings:
warning: associated function `new` is never used
--> src/transport/mqtt/mqtt_router.rs:33:19
|
32 | impl MqttRouter {
| --------------- associated function in this implementation
33 | pub(crate) fn new() -> MqttRouter {
| ^^^
|
= note: `#[warn(dead_code)]` on by default
warning: `libits-client` (lib) generated 1 warning
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.08s
Running `target/debug/examples/telemetry`
There is a conflict on THIRD-PARTY.md
. Please rebase and resolve the conflict before pushing again.
There is a conflict on
THIRD-PARTY.md
. Please rebase and resolve the conflict before pushing again.
Sure, I already did the rebase, I was waiting for a cue from your side to push it
I'll also fix the warnings, either by real fix or by FIXME
ing using an issue reference
I added 3 new commits, that you can review, to fix the workflow issue, and the build warnings
What's new
Rust
json_counter
for MQTT client without mobility functionnalitytelemetry
for OpenTelemetry clientHow to test
Check workflow status => None must have failed
Test MQTT example
=> The example must run successfully and log about message reception
Test mobility example
Edit the configuration to limit the analysis threads to 1
Launch the example
=> The example must run successfully
Send a CAM message
=> The received CAM is scheduled for copy
Wait a few seconds (more than 3)
Send a second CAM
=> Second CAM is scheduled for copy
=> Previous received CAM is sent on inQueue
Test telemetry example
example/config.ini
file to uncomment and fill the[telemetry]
section to fit your OTLP collector configuration=> Example must correctly run and send several traces