From 51be20d7d16ec76bf0ca00aa1ff21c0774a0d89e Mon Sep 17 00:00:00 2001 From: Nick Ripley <97066770+nsrip-dd@users.noreply.github.com> Date: Wed, 5 Jan 2022 08:59:15 -0500 Subject: [PATCH] profiler: remove WithAPIKey from example (#1112) 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"),