Closed S7evinK closed 3 months ago
Interesting, thanks for the PR. Be sure to run through cargo fmt
which enforce our coding standards.
In your use case, does Goose provide you any metrics? When you clone and pass off the GooseUser, is something other than Reqwest making the requests? Why not set up a proxy? I'm trying to better understand your use case, and the implications of this change.
Thanks for the quick reply. :)
Goose provides metrics in our case which we need to sanitize, as having metrics for each "room" (e.g. /_matrix/client/v3/rooms/{roomId}/join
) doesn't make sense as we care about the /join
endpoint only.
The underlying matrix-rust-sdk uses reqwest
as well, but if we pass it the client provided by GooseUser
, we're losing the metrics.
As the title describes, this implements
Clone
andDebug
forGooseUser
andGooseUserData
.In our use-case we need to pass
GooseUser
to a SDK which is doing all the network requests.