Skip to content

Commit

Permalink
Rename some options and env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
nsavoire committed Oct 24, 2024
1 parent 66469a5 commit 0212176
Show file tree
Hide file tree
Showing 14 changed files with 507 additions and 272 deletions.
3 changes: 2 additions & 1 deletion LICENSE-3rdparty.csv
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,12 @@ import,github.com/opencontainers/go-digest,Apache-2.0,"Copyright 2019, 2020 OCI
import,github.com/opencontainers/image-spec,Apache-2.0,Copyright 2016 The Linux Foundation.
import,github.com/opencontainers/runtime-spec/specs-go,Apache-2.0,Copyright 2015 The Linux Foundation.
import,github.com/opencontainers/selinux,Apache-2.0,unknown
import,github.com/peterbourgon/ff/v3,Apache-2.0,unknown
import,github.com/pkg/errors,BSD-2-Clause,"Copyright (c) 2015, Dave Cheney <[email protected]>"
import,github.com/sirupsen/logrus,MIT,Copyright (c) 2014 Simon Eskildsen
import,github.com/tklauser/numcpus,Apache-2.0,unknown
import,github.com/urfave/cli/v3,MIT,Copyright (c) 2023 urfave/cli maintainers
import,github.com/x448/float16,MIT,Copyright (c) 2019 Montgomery Edwards⁴⁴⁸ and Faye Amacker
import,github.com/xrash/smetrics,MIT,Copyright (C) 2016 Felipe da Cunha Gonçalves
import,github.com/zeebo/xxh3,BSD-2-Clause,"Copyright (c) 2012-2014, Yann Collet | Copyright (c) 2019, Jeff Wendling"
import,go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp,Apache-2.0,unknown
import,go.opentelemetry.io/otel,Apache-2.0,unknown
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ For compiled languages (C/C++/Rust/Go), the profiler can upload local symbols (w
This feature requires being part of our private beta program for the OpenTelemetry profiler. Please reach out to Datadog support to get access.

To enable local symbol upload:
1. Set the `DD_EXPERIMENTAL_LOCAL_SYMBOL_UPLOAD` environment variable to `true`.
1. Set the `DD_PROFILING_EXPERIMENTAL_UPLOAD_SYMBOLS` environment variable to `true`.
2. Provide a Datadog API key through the `DD_API_KEY` environment variable.
3. Set the `DD_SITE` environment variable to [your Datadog site](https://docs.datadoghq.com/getting_started/site/#access-the-datadog-site) (e.g. `datadoghq.com`, `datadoghq.eu`, `us5.datadoghq.com`, ...).

Expand All @@ -56,9 +56,9 @@ First, create a `.env` file with the following content:
ARCH=amd64 # required
DD_API_KEY=your-api-key # required
DD_SITE=datadoghq.com # optional, defaults to "datadoghq.com"
DD_OTEL_HOST_PROFILER_SERVICE=my-service # optional, defaults to "dd-otel-host-profiler"
DD_OTEL_HOST_PROFILER_REPORTER_INTERVAL=10s # optional, defaults to 60s
DD_EXPERIMENTAL_LOCAL_SYMBOL_UPLOAD=true # optional, defaults to false
DD_SERVICE=my-service # optional, defaults to "dd-otel-host-profiler"
DD_PROFILING_UPLOAD_PERIOD=10s # optional, defaults to 60s
DD_PROFILING_EXPERIMENTAL_UPLOAD_SYMBOLS=true # optional, defaults to false
```

Then, you can run the profiler with the following command:
Expand Down
Loading

0 comments on commit 0212176

Please sign in to comment.