Skip to content

Commit 06c9f99

Browse files
authored
Replace deprecated experimental.FunctionListenerFactoryKey with experimental.WithFunctionListenerFactory (#108)
1 parent 2187e44 commit 06c9f99

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

internal/e2e/profiler/profiler.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@ func main() {
5858
p := wzprof.ProfilingFor(guestBin)
5959
cpu := p.CPUProfiler()
6060
mem := p.MemoryProfiler()
61-
ctx := context.WithValue(context.Background(),
62-
experimental.FunctionListenerFactoryKey{},
61+
62+
ctx := experimental.WithFunctionListenerFactory(
63+
context.Background(),
6364
experimental.MultiFunctionListenerFactory(
6465
wzprof.Sample(sampleRate, cpu),
6566
wzprof.Sample(sampleRate, mem),

0 commit comments

Comments
 (0)