From c12fad2b1e3a2decfdf04142fa88ac32ab048355 Mon Sep 17 00:00:00 2001 From: Nick Ripley Date: Wed, 5 Jan 2022 08:27:20 -0500 Subject: [PATCH] profiler: remove WithAPIKey from example WithAPIKey is used for agentless uploading, which we don't officially support. On top of that, the example doesn't have WithAgentlessUpload so the user would get a warning if they ran the example code as-is. --- profiler/example_test.go | 1 - 1 file changed, 1 deletion(-) diff --git a/profiler/example_test.go b/profiler/example_test.go index f6322e6100..1ab451d385 100644 --- a/profiler/example_test.go +++ b/profiler/example_test.go @@ -14,7 +14,6 @@ import ( // This example illustrates how to run (and later stop) the Datadog Profiler. func Example() { err := profiler.Start( - profiler.WithAPIKey("123key"), profiler.WithService("users-db"), profiler.WithEnv("staging"), profiler.WithTags("version:1.2.0"),