From f9b9ce6f4b4dfc813c603aefccded6d6d0ea37f1 Mon Sep 17 00:00:00 2001 From: Dmitriy Shirchenko Date: Mon, 6 Apr 2020 18:29:16 -0700 Subject: [PATCH] Update zapcore/sampler.go Co-Authored-By: Abhinav Gupta --- zapcore/sampler.go | 1 + 1 file changed, 1 insertion(+) diff --git a/zapcore/sampler.go b/zapcore/sampler.go index f1c60d0ac..1a1834b2a 100644 --- a/zapcore/sampler.go +++ b/zapcore/sampler.go @@ -170,6 +170,7 @@ type sampler struct { // Keep in mind that zap's sampling implementation is optimized for speed over // absolute precision; under load, each tick may be slightly over- or // under-sampled. +// // Deprecated: use NewSamplerWithOptions. func NewSampler(core Core, tick time.Duration, first, thereafter int) Core { return &sampler{