Labsco
DataDog logo

dd-symdb

โ˜… 940

by datadog-labs ยท part of datadog-labs/pup

Symbol Database - search service symbols, find probe-able methods.

๐Ÿ”Œ This skill ships inside the pup plugin โ€” install the plugin and you also get 40 sub-agents.

This is the playbook your agent receives when the skill activates โ€” you don't need to read it to use the skill, but it's here to audit before installing.

Datadog Symbol Database

Search for classes and methods in instrumented services. Find probe-able method locations for use with the Live Debugger.

Authentication

Authenticate via OAuth2 (recommended) or API keys:

# OAuth2 (recommended)
pup auth login

# Or use API keys
export DD_API_KEY="key" DD_APP_KEY="key" DD_SITE="datadoghq.com"

Combining with Debugger

Find methods then place probes:

# 1. Find probe-able methods
pup symdb search --service my-service --query "MyController" --view probe-locations

# 2. Place a probe on a discovered method (language auto-detected from symdb)
pup debugger probes create \
  --service my-service \
  --env production \
  --probe-location "com.example.MyController:handleRequest" \
  --template "handleRequest called with id={id}"

# Or use the full signature when multiple overloads exist
pup debugger probes create \
  --service my-service \
  --env production \
  --probe-location "com.example.MyController:handleRequest(int, java.lang.String)" \
  --template "handleRequest called with id={id}"

# 3. Stream events
pup debugger probes watch <PROBE_ID> --timeout 60 --limit 10

Options

FlagDescriptionDefault
--serviceService name (required)โ€”
--querySearch query, matches scope namesNone (lists all)
--versionService version filterNone
--viewOutput view: full, names, probe-locationsfull

Failure Handling

ProblemFix
No resultsVerify the service is instrumented and reporting to Datadog
Auth errorRun pup auth login or set DD_API_KEY + DD_APP_KEY + DD_SITE
Wrong service nameCheck exact service name in Datadog APM service catalog
Stale symbolsFilter with --version to target the currently deployed version

References