summaryrefslogtreecommitdiff
path: root/vendor/github.com/technologize/otel-go-contrib/otelginmetrics/recorder.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/technologize/otel-go-contrib/otelginmetrics/recorder.go')
-rw-r--r--vendor/github.com/technologize/otel-go-contrib/otelginmetrics/recorder.go25
1 files changed, 0 insertions, 25 deletions
diff --git a/vendor/github.com/technologize/otel-go-contrib/otelginmetrics/recorder.go b/vendor/github.com/technologize/otel-go-contrib/otelginmetrics/recorder.go
deleted file mode 100644
index 7fadeff38..000000000
--- a/vendor/github.com/technologize/otel-go-contrib/otelginmetrics/recorder.go
+++ /dev/null
@@ -1,25 +0,0 @@
-package otelginmetrics
-
-import (
- "context"
- "time"
-
- "go.opentelemetry.io/otel/attribute"
-)
-
-type Recorder interface {
- // AddRequests increments the number of requests being processed.
- AddRequests(ctx context.Context, quantity int64, attributes []attribute.KeyValue)
-
- // ObserveHTTPRequestDuration measures the duration of an HTTP request.
- ObserveHTTPRequestDuration(ctx context.Context, duration time.Duration, attributes []attribute.KeyValue)
-
- // ObserveHTTPRequestSize measures the size of an HTTP request in bytes.
- ObserveHTTPRequestSize(ctx context.Context, sizeBytes int64, attributes []attribute.KeyValue)
-
- // ObserveHTTPResponseSize measures the size of an HTTP response in bytes.
- ObserveHTTPResponseSize(ctx context.Context, sizeBytes int64, attributes []attribute.KeyValue)
-
- // AddInflightRequests increments and decrements the number of inflight request being processed.
- AddInflightRequests(ctx context.Context, quantity int64, attributes []attribute.KeyValue)
-}