signalfx / signalfx-go

Go client library and instrumentation bindings for SignalFx
https://www.signalfx.com
Apache License 2.0
14 stars 48 forks source link

signalflow fakebackend support for timestamp control and END_OF_CHANNEL #144

Closed jherbage closed 2 years ago

jherbage commented 2 years ago

Timestamps are introduced via the execute request counting up in resolutionMs increments between the startMs time and the stopMs time. When the stopMs is reached the END_OF_CHANNEL is reached. This makes the fakebackend moure usuable in unit tests since we can have deterministic timestamps and the client can disconnect when the computation all expected datapoints. Unit tests added to demonstrate this works with multiple clients connecting.

jherbage commented 2 years ago

Closing this as messed up the commit history on my fork Opened pull request 145 to replace it