Skip to content

Commit

Permalink
reporter: always append remote_symbols:yes tag (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gandem committed Jun 28, 2024
1 parent c4ef067 commit 5e03921
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ sudo mount -t debugfs none /sys/kernel/debug
After that, you can start the agent as shown below:

```
sudo otel-profiling-agent -tags 'service:myservice;remote_symbols:yes' -collection-agent "http://localhost:8126" -reporter-interval 60s -samples-per-second 20
sudo otel-profiling-agent -tags 'service:myservice' -collection-agent "http://localhost:8126" -reporter-interval 60s -samples-per-second 20
```

For this to work you need to run a Datadog agent that listens for APM traffic at `localhost:8126`. If your agent is reachable under a different address, you can modify the `-collection-agent` parameter accordingly.
Expand Down
2 changes: 1 addition & 1 deletion reporter/datadog_reporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ func (r *DatadogReporter) reportProfile(ctx context.Context) error {
for _, attr := range customAttributes {
tags = append(tags, "ddprof.custom_ctx:"+attr)
}
tags = append(tags, "runtime:native", "cpu_arch:"+runtime.GOARCH)
tags = append(tags, "runtime:native", "remote_symbols:yes", "cpu_arch:"+runtime.GOARCH)
foundService := false
// check if service tag is set, if not set it to otel-profiling-agent
for _, tag := range tags {
Expand Down

0 comments on commit 5e03921

Please sign in to comment.