Skip to content

Commit

Permalink
profiler: remove WithAPIKey from example (#1112)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nsrip-dd authored Jan 5, 2022
1 parent 84f1fa1 commit 51be20d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion profiler/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit 51be20d

Please sign in to comment.