From f39859fa37147b88fcc25d9e09ea62d9515e20da Mon Sep 17 00:00:00 2001 From: Georges Haidar Date: Tue, 27 Feb 2024 10:29:03 +0000 Subject: [PATCH] explicitly disable lint rule as false positive --- engine.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine.go b/engine.go index 9e06ff2..cbbf914 100644 --- a/engine.go +++ b/engine.go @@ -39,7 +39,7 @@ var ( type CallContext struct { goja.FunctionCall VM *vm.VM - Ctx context.Context + Ctx context.Context //nolint:containedctx // runtime context is necessarily stored in a struct as it jumps from Go to JS. } // Opt is a function that configures the Engine. @@ -99,6 +99,7 @@ func WithJSFiles(files map[string]string) Opt { } } +// WithTracer attaches an OpenTelemetry tracer to the engine and enables tracing support. func WithTracer(t trace.Tracer) Opt { return func(e *Engine) { e.tracer = t