u/Ordinary_Squirrel291

Cleanup SQL query

I have a GO app that queries a database and it is instrumented with OTel.
I want to clean up the query as recorded in telemetry (not changing the code).

The GO code (screenshot below) produces this value:
"\n\t\tSELECT p.id, p.name, p.description, p.picture, \n\t\t p.price_currency_code, p.price_units, p.price_nanos, p.categories\n\t\tFROM catalog.products p\n\t\tWHERE p.id = $1\n\t"

This SQL query is recorded as a span attribute "db.query.text".

Q: How can I remove the escaped whitespace in the collector (or elsewhere?) so that there is a single space where there are sequences of escaped whitespaces?

GO code

reddit.com
u/Ordinary_Squirrel291 — 7 days ago
▲ 2 r/Multicopter+1 crossposts

I am designing a large drone frame that I'm planning on using with a BetaFlight FC.

To simplify component placement, I want to put the FC about 2" forward from the geometric center of the motors. The distance between adjacent motors' centers is 18".

BetaFlight has rotational offsets for FC orientation (roll, pitch, yaw), but I don't see translation offsets. ArduPilot has translation, so it probably matters.

Do you think 2" off-center placement on 18" frame would matter?

If it matters, is there a way to compensate in BetaFlight config?

reddit.com
u/Ordinary_Squirrel291 — 25 days ago