osquery / osquery-go

Go bindings for osquery
MIT License
388 stars 79 forks source link

Set internal version for OpenTelemetry traces on initialization #114

Closed RebeccaMahany closed 1 year ago

RebeccaMahany commented 1 year ago

When I pulled in https://github.com/osquery/osquery-go/pull/110 to began using traces, I noticed that it was possible to have a data race when the first few spans created by a consuming application could be created at the same time. This PR fixes that issue and adds a test to confirm the fix as well.