You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm following along on main with prototyping some Rust services and using nats micro . @Jarema pointed out to me on Slack that there was some work going on in main to make the Rust service API work with the CLI tooling.
Using main , I can now list my service and demo service built into nats:
> nats micro list
╭────────────────────────────────────────────────────────────────────────────╮
│ All Micro Services │
├──────────┬─────────┬────────────────────────┬──────────────────────────────┤
│ Name │ Version │ ID │ Description │
├──────────┼─────────┼────────────────────────┼──────────────────────────────┤
│ test │ 1.0.0 │ QOv6Nd9jIdMx5ovNIB3gCB │ NATS CLI Demo Service (test) │
│ snapshot │ 0.0.1 │ srimFQtrRuMqQOJAHzKkzW │ Telemetry snapshot service │
╰──────────┴─────────┴────────────────────────┴──────────────────────────────╯
Good stuff, I was getting an error about the endpoints not being filled out before but can now get past that on main. Next I tried to query for stats on both:
The demo service (Go I presume?) omits returning a data field at all, whereas my Rust service explicitly returns null which the CLI doesn't like.
Didn't see anything in tracker about stats not working against a Rust service.
Expected behavior
Not sure if the Rust serde should be adjusted to omit data when Option == None or if the CLI should gracefully handle null in the same way that it handles the JSON field not being present?
Observed behavior
Hi, I'm following along on main with prototyping some Rust services and using
nats micro
. @Jarema pointed out to me on Slack that there was some work going on in main to make the Rust service API work with the CLI tooling.Using
main
, I can now list my service and demo service built intonats
:Good stuff, I was getting an error about the endpoints not being filled out before but can now get past that on main. Next I tried to query for stats on both:
The demo service (Go I presume?) omits returning a
data
field at all, whereas my Rust service explicitly returnsnull
which the CLI doesn't like.Didn't see anything in tracker about
stats
not working against a Rust service.Expected behavior
Not sure if the Rust serde should be adjusted to omit
data
when Option == None or if the CLI should gracefully handlenull
in the same way that it handles the JSON field not being present?Server and client version
Using main 3fbf7c889e491f1821422ad6859a14f8fa0115d3
WITH
nats 0.1.1
Host environment
No response
Steps to reproduce
No response
The text was updated successfully, but these errors were encountered: