Commit Graph

25 Commits (36df687aa824d026e2ffcfa9e767b0b576729842)

Author SHA1 Message Date
Sam Arnold 5015297d40
fix: more expressive errors (#22448)
* fix: more expressive errors

Closes #22446

* fix: server only logging for untyped errors

* chore: fix formatting
2021-09-13 15:12:35 -04:00
William Baker 4db7978b32
feat(telemetry): Do not record telemetry data for invalid requests; replace invalid static asset paths with a slug (#21958)
* feat: record telemetry data only on successful response codes

* feat: re-write request path in file handler

* fix: use a slug for the replacement path

* chore: update CHANGELOG

* fix: report for 5XX also

* fix: address review comments
2021-07-29 10:22:11 -06:00
William Baker fee3c46023
fix: add telemetry slug for additional file exts (#21522)
* fix: add telemetry slug for more exts

* chore: update CHANGELOG
2021-05-20 08:58:18 -04:00
William Baker 540bb66e13
feat(telemetry): replace unique ids for resources with a slug (#21158)
* feat(telemetry): replace unique ids for resources with a slug

* chore: update CHANGELOG
2021-04-08 09:57:47 -04:00
Daniel Moran 00afd95cb7
refactor: automated move of errors and id from root to kit (#21101)
Co-authored-by: Sam Arnold <sarnold@influxdata.com>
2021-03-30 14:10:02 -04:00
Daniel Moran 316eaa24b4
feat(http): add config option to disable metrics endpoint in influxd (#20963) 2021-03-15 15:11:23 -04:00
Daniel Moran 15b9531273
fix: correct various typos (#19987)
Co-authored-by: kumakichi <xyesan@gmail.com>
2020-11-11 13:54:21 -05:00
Russ Savage bc4bae3738
fix(middleware): adding PATCH to access control allow methods (#19637)
* fix(middleware): adding PATCH to access control allow methods

* chore(changelog): added PATCH change
2020-09-24 11:49:00 -07:00
Stuart Carnie 9c4dfed391 feat: Add ENotImplemented error code
This is more explicit that EInternal, allowing APIs to indicate
a potentially temporary status of "501 Not implemented"
2020-09-24 11:11:46 -07:00
Lyon Hill 46d4f7d7bb
chore(tenant): point tests to new tenant service (#19477)
Now that the tenant service is complete we should be using it for all
test instead of the kv.Service.
2020-09-02 11:50:26 -06:00
Michael Desa 550966dbe2
chore(http): add response_code as label to http_api_* metrics (#19389)
This was added so that we can distinguish between 4XX and 401 class
errors. It should have a minimal impact in overall cardinality.

Co-authored-by: Greg Linton  <greg@influxdata.com>

Co-authored-by: Greg Linton  <greg@influxdata.com>
2020-08-19 13:19:18 -07:00
Lyon Hill 5776350a53
feat: switch to use the new tenant bucket service (#18738) 2020-06-30 14:48:42 -06:00
Johnny Steenbergen 3dcd5d496f feat(pkger): add ability to export by stack
this ability exports all resources associated with a stack by the same
metadata.name fields as the original application had done it. This can
be used as a means to snapshot the current state of the stack. This can
be used for source control or other means.

closes: #18271
2020-06-02 08:18:11 -07:00
Alirie Gray 7f4ddabe8a
refactor: add new label package (#18078) 2020-05-21 11:30:19 -07:00
Ben Johnson 97960a5930 feat(http): Client disconnections should return a HTTP 499 error code.
This commit checks http.Request.Context().Err() to see if the context
has been canceled before writing an error code. It uses the non-standard
Nginx 499 error code for client disconnection.
2020-05-14 14:51:57 -06:00
Alirie Gray 24cc1cabb8
feat: add feature flag for refactored authorization package (#17944) 2020-05-08 10:00:39 -07:00
George 67307d804e
chore(errors): interpret more cases as influxdb error type in http.CheckError (#17888) 2020-04-30 17:55:17 +01:00
Johnny Steenbergen e295d508ac fix: make API type marshal before writing to respone writer to avoid duplicate write header calls on failed encoding
this fix is necessary to avoid the superflour write header error. When the
write fails, we log it, this shoudl never happen unless the connection gets
corrupted. In that case there is nothing for the server to do except log
2020-04-15 14:26:25 -07:00
Pavel Zavora b6b904e105 fix(CORS): stop processing in pre-flight CORS requests 2020-04-07 08:12:31 +02:00
Jonathan A. Sternberg 0ae8bebd75
refactor: rewrite imports to include the /v2 suffix for version 2 2020-04-03 12:39:20 -05:00
Jakub Bednář 696a67f5bf
fix(CORS): added User-Agent to allowed CORS headers (#17525)
Signed-off-by: Jakub Bednar <jakub.bednar@gmail.com>
2020-04-01 14:41:07 -07:00
David McKay 8e51fe0aad fix(CORS): accept OPTIONS preflight request with Origin header 2020-02-06 20:28:29 +01:00
Johnny Steenbergen ba803d2046 feat(kit): add http api decoder/responder 2020-02-04 09:43:51 -08:00
Johnny Steenbergen 2b0b32abe8 chore(http): pull out eror handler into kit pkg for portability 2020-02-03 12:39:47 -08:00
Johnny Steenbergen c8aabaf515 chore(http): fixup middleware stack and normalize metrics into same buckets for id fields 2020-01-08 15:05:34 -08:00