statsd_exporter/pkg/mapper
Matthias Rampke bc43c5606d
mapper: Make sure we have a logger before backtracking check
The FSM backtracking detection issues a log line. Make sure there is a
non-nil logger before doing that.

Avoids the crash in prometheus/graphite_exporter#197.

Signed-off-by: Matthias Rampke <matthias@prometheus.io>
2022-07-29 11:46:57 +00:00
..
fsm feat: enable more linters and fix warnings (#364) 2021-10-24 21:27:31 +07:00
action.go Move mapper -> pkg/mapper 2018-08-14 09:20:00 +00:00
escape.go fix linter warnings: goimports, wsl 2021-10-24 00:13:53 +07:00
escape_test.go fix linter warnings: goimports, wsl 2021-10-24 00:13:53 +07:00
mapper.go mapper: Make sure we have a logger before backtracking check 2022-07-29 11:46:57 +00:00
mapper_benchmark_test.go Fixing broken benchmark for mapper 2022-06-17 12:14:29 +02:00
mapper_cache.go Add comments about thread-safety 2021-02-19 14:13:03 -05:00
mapper_defaults.go format and clarify alias type comment 2021-01-28 14:24:41 -05:00
mapper_test.go allow multiple dashes in StatsD metric names 2021-06-17 09:43:40 -07:00
mapping.go move mapping and mapper_defaults into their own files with their unmarshalers 2020-06-16 07:46:53 -04:00
match.go replace glob matching 2018-09-11 17:34:19 -07:00
metric_type.go support deprecated timer_type in configs 2020-06-15 18:41:16 -04:00
observer.go Rename timer to observer in mapper 2020-06-15 17:26:20 -04:00