From 7141f972700ed454438d8539dd0bec79c0b61cf4 Mon Sep 17 00:00:00 2001 From: Sebastian Jug Date: Tue, 16 Oct 2018 16:30:53 -0400 Subject: OpenTracing support added to start, stop, run, create, pull, and ps Drop context.Context field from cli.Context Signed-off-by: Sebastian Jug --- .../github.com/uber/jaeger-lib/metrics/counter.go | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 vendor/github.com/uber/jaeger-lib/metrics/counter.go (limited to 'vendor/github.com/uber/jaeger-lib/metrics/counter.go') diff --git a/vendor/github.com/uber/jaeger-lib/metrics/counter.go b/vendor/github.com/uber/jaeger-lib/metrics/counter.go new file mode 100644 index 000000000..2a6a43efd --- /dev/null +++ b/vendor/github.com/uber/jaeger-lib/metrics/counter.go @@ -0,0 +1,28 @@ +// Copyright (c) 2017 Uber Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package metrics + +// Counter tracks the number of times an event has occurred +type Counter interface { + // Inc adds the given value to the counter. + Inc(int64) +} + +// NullCounter counter that does nothing +var NullCounter Counter = nullCounter{} + +type nullCounter struct{} + +func (nullCounter) Inc(int64) {} -- cgit v1.2.3-54-g00ecf