Commit Graph

10 Commits (5b2511c776ed7d8c3c0091d1890127c4474ca53b)

Author SHA1 Message Date
Ayan George ca2055c16c
refactor: Replace ctx.Done() with ctx.Err() (#19546)
* refactor: Replace ctx.Done() with ctx.Err()

Prior to this commit we checked for context cancellation with a select
block and context.Context.Done() without multiplexing over any other
channel like:

  select {
    case <-ctx.Done():
      // handle cancellation
    default:
      // fallthrough
  }

This commit replaces those type of blocks with a simple check of
ctx.Err().  This has the following benefits:

* Calling ctx.Err() is much faster than entering a select block.

* ctx.Done() allocates a channel when called for the first time.

* Testing the result of ctx.Err() is a reliable way of determininging if
  a context.Context value has been canceled.

* fix: Fix data race in execDeleteTagValueEntry()
2020-09-16 12:20:09 -04:00
Jonathan A. Sternberg 0ae8bebd75
refactor: rewrite imports to include the /v2 suffix for version 2 2020-04-03 12:39:20 -05:00
Chris Goller 5543e4e296 feat(telemetry): add telemetry.influxdata.com as telemetry URL 2019-01-22 16:56:12 -06:00
Chris Goller f30c5358d7 feat(telemetry): allow store format to be set 2019-01-21 18:45:04 -06:00
Chris Goller 4a16a8b68e refactor(telemetry): allow push format to be specified 2019-01-21 17:55:58 -06:00
Chris Goller d9f5e84d6a feat(telemetry): add telemetry server handler 2019-01-21 13:05:58 -06:00
Chris Goller 2d00eb18c5 feat(telemetry): add telemetry handler 2019-01-21 13:05:58 -06:00
Chris Goller e8215c01b5 refactor(telemetry): remove usage to simplify to a filter. 2019-01-21 13:05:58 -06:00
Chris Goller e690f4bfb3 chore(telemetry): move telemetry into its own package 2019-01-21 13:05:58 -06:00
Chris Goller b3161b0927 chore(telemetry): moving packages from prometheus to telemetry 2019-01-21 13:05:58 -06:00