Skip to content

Commit

Permalink
Replace deprecated experimental.FunctionListenerFactoryKey with `ex…
Browse files Browse the repository at this point in the history
…perimental.WithFunctionListenerFactory` (#108)
  • Loading branch information
chansuke authored Jun 10, 2024
1 parent 2187e44 commit 06c9f99
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/e2e/profiler/profiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ func main() {
p := wzprof.ProfilingFor(guestBin)
cpu := p.CPUProfiler()
mem := p.MemoryProfiler()
ctx := context.WithValue(context.Background(),
experimental.FunctionListenerFactoryKey{},

ctx := experimental.WithFunctionListenerFactory(
context.Background(),
experimental.MultiFunctionListenerFactory(
wzprof.Sample(sampleRate, cpu),
wzprof.Sample(sampleRate, mem),
Expand Down

0 comments on commit 06c9f99

Please sign in to comment.