George
0996e06d5d
chore(http): stop tracing system related api paths ( #17918 )
2020-04-30 16:33:23 +01:00
Jonathan A. Sternberg
0ae8bebd75
refactor: rewrite imports to include the /v2 suffix for version 2
2020-04-03 12:39:20 -05: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
Chris Goller
5519faa697
fix(http): remove authorization and user-agent headers from trace
...
Now, traces will have all headers except authorization and user-agent.
Additionally, I've removed the referer and remoteaddr as they did not
contribute much.
Eventually, this may change to just a small set of headers to record.
2019-12-05 11:30:29 -06:00
Jacob Marble
5f19c6cace
chore: Remove several instances of WithLogger ( #15996 )
...
* chore: Remove several instances of WithLogger
* chore: unexport Logger fields
* chore: unexport some more Logger fields
* chore: go fmt
chore: fix test
chore: s/logger/log
chore: fix test
chore: revert http.Handler.Handler constructor initialization
* refactor: integrate review feedback, fix all test nop loggers
* refactor: capitalize all log messages
* refactor: rename two logger to log
2019-12-04 15:10:23 -08:00
Chris Goller
632b93ac6b
refactor(http): normalize user-agent names
...
User-Agent cardinality is unbounded; this attempts to
decrease the number quite a bit.
2019-12-04 15:02:00 -06:00
Edd Robinson
d367aee428
refactor: add more tracing information to writes
2019-12-04 18:50:26 +00:00
Johnny Steenbergen
9d5392cfd9
fix(logging): add debug logging for all http requests
2019-10-07 14:19:21 -07:00
Alirie Gray
763fe0a6e5
feat(http): add user-agent metrics to all http endpoints
2019-05-02 11:58:13 -07:00
Jacob Marble
f56c42794b
chore(tracing): Cleanup ( #13296 )
...
* chore(tracing): Cleanup
* broken test
* fix unused var
* fix test
2019-04-10 19:28:21 -07:00
Kelvin Wang
79ce30691e
update(http): remove kerrors, change the default to be influxdb error
2019-01-25 10:29:26 -08:00
Chris Goller
a28494ad76
feat(http): use default prom histogram buckets
2019-01-19 19:19:18 -06:00
Mark Rushakoff
d73d73c0d4
chore: rename imports from platform to influxdb
...
I did this with a dumb editor macro, so some comments changed too.
Also rename root package from platform to influxdb.
In interest of minimizing risk, anyone importing the root package has
now aliased it to "platform" so that no changes beyond imports were
necessary in those files.
Lastly, replace the old platform module to local path /dev/null so that
nobody can accidentally reintroduce a platform dependency while
migrating platform code to influxdb.
2019-01-09 20:51:47 -08:00
Michael Desa
32bd37de9a
fix(http): remove second potention call to w.WriteHeader
...
Multiple calls to w.WriteHeader were possible if there was an error that
was encountered while encoding the response. To resolve this, we simply
log any error that is encountered instead.
2018-12-20 11:11:09 -05:00
Lyon Hill
4d90d826b3
Add the ability to have readiness probe seperate from liveness probes ( #1581 )
...
* Add the ability to have readiness probe seperate from liveness probes
2018-11-27 15:29:59 -07:00
Chris Goller
7756f8dc6a
feat(cmd/influxd): add log levels
2018-10-30 02:27:51 -05:00
Chris Goller
aee35e4cde
fix(http): links updated to match swagger doc
2018-10-06 10:11:20 -05:00
Jonathan A. Sternberg
f7b4c4001e
Merge pull request #527 from influxdata/js-remove-error-field-with-no-error
...
fix(http): only log an error and reference code if it exists
2018-10-04 11:51:15 -05:00
Chris Goller
cb1de24097
feat(http) add top-level links and health
2018-09-04 17:28:59 -05:00
Nathaniel Cook
f6923881f7
feat: Add zap opentracing.Tracer
...
Propogate opentracing spans through HTTP requests.
Use zap logger to log each span as it is finished.
2018-08-16 14:32:04 -06:00
Jonathan A. Sternberg
97a636ae8e
fix(http): only log an error and reference code if it exists
...
We should not log fields that don't exist since it clutters up the logs.
2018-08-01 09:47:58 -05:00
Nathaniel Cook
ef9c26391c
feat: add errors to http logging
2018-07-31 14:34:55 -06:00
Nathaniel Cook
1ef9de6aed
feat: Add optional http logging to handler
2018-07-30 16:16:37 -06:00
Mark Rushakoff
a1bf6856fc
chore(http): integrate with prom.Registry
2018-07-11 16:54:23 -07:00
Michael Desa
eabba6986d
migrate(platform): move public dependencies into platform
...
migrate(context): move context package to platform
migrate(kit/errors): move errors package to platform
migrate(mock): move mock package to platform
migrate(prometheus): move prometheus package to platform
migrate(rand): move rand package to platform
migrate(snowflake): move snowflake package to platform
migrate(testing): move testing package to platform
migrate(zap): move zap package to platform
migrate(http): move http package to platform
migrate(platform): rename base package idpe to platform
git(base): add gitignore
dep: add dependencies
migrate(platform): remove consumer.go
migrate(platform): make secret things private again
2018-05-14 17:12:53 -04:00