[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-datadog-labs-service-remapping":3,"mdc-7pk8qb-key":36,"related-org-datadog-labs-service-remapping":4170,"related-repo-datadog-labs-service-remapping":4344},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":25,"repoUrl":26,"updatedAt":27,"license":28,"forks":29,"topics":30,"repo":31,"sourceUrl":34,"mdContent":35},"service-remapping","manage Datadog APM service remapping rules","Create and manage APM service remapping rules — rewrite service names at ingestion time to collapse noisy inferred entities, clean up auto-generated names, handle org renames, or normalize naming conventions. Use for any request involving service renaming, service mapping, inferred service cleanup, peer.service normalization, or collapsing fragmented service names.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"datadog-labs","Datadog Labs","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fdatadog-labs.png",[12,16,19,22],{"name":13,"slug":14,"type":15},"Observability","observability","tag",{"name":17,"slug":18,"type":15},"Performance","performance",{"name":20,"slug":21,"type":15},"Monitoring","monitoring",{"name":23,"slug":24,"type":15},"Datadog","datadog",145,"https:\u002F\u002Fgithub.com\u002Fdatadog-labs\u002Fagent-skills","2026-05-06T05:42:31.71952",null,19,[],{"repoUrl":26,"stars":25,"forks":29,"topics":32,"description":33},[],"Public repository for Datadog Agent Skills","https:\u002F\u002Fgithub.com\u002Fdatadog-labs\u002Fagent-skills\u002Ftree\u002FHEAD\u002Fdd-apm\u002Fservice-remapping","---\nname: service-remapping\ndescription: Create and manage APM service remapping rules — rewrite service names at ingestion time to collapse noisy inferred entities, clean up auto-generated names, handle org renames, or normalize naming conventions. Use for any request involving service renaming, service mapping, inferred service cleanup, peer.service normalization, or collapsing fragmented service names.\nmetadata:\n  version: \"1.0.0\"\n  author: datadog-labs\n  repository: https:\u002F\u002Fgithub.com\u002Fdatadog-labs\u002Fagent-skills\n  tags: datadog,apm,service-remapping,service-naming,inferred-services,peer-service\n  alwaysApply: \"false\"\n  tools: pup\n---\n\n# APM Service Remapping\n\n> **Before acting:** Surface an impact preview (monitors\u002Fdashboards referencing the old service name) before presenting the planned rule. For inferred-entity remaps, also confirm `peer.service` is set on outbound spans. Variables from `## Context to resolve before acting` can be gathered alongside that preview rather than blocking it.\n\n---\n\n## How Service Remapping Works — Domain Knowledge\n\nRead this before building any rule. It gives you the mental model to construct the right filter and catch edge cases.\n\n**What remapping does:** A rule intercepts telemetry at ingestion time and rewrites the service name before indexing. A rule says: \"for any entity matching this filter, replace its service name with this new value.\"\n\n**Two entity types — pick the right one:**\n\n| Entity type | `rule_type` integer | What it targets |\n|---|---|---|\n| **SERVICE** | `0` | Instrumented services — have spans with an explicit `service` tag set by a tracer |\n| **INFERRED_ENTITY** | `1` | Auto-detected from outbound calls — named from `peer.service`. **Requires `peer.service` to be set on outbound spans** (see prerequisite below). |\n\n**Prerequisite for inferred entity remapping — `peer.service` must be set:**\n\nInferred entity remapping only works when the tracer sets `peer.service` on outbound spans. Without it, entities are keyed by `peer.hostname` and remapping rules will not apply.\n\nTo enable this, set the following env var on the **instrumented service** (not the downstream dependency):\n\n```bash\nDD_TRACE_PEER_SERVICE_DEFAULTS_ENABLED=true\n```\n\nThis makes the ddtrace tracer automatically propagate `peer.service` from `peer.hostname` on outbound HTTP, gRPC, and database calls. Without this, `pup traces search` will show spans with `peer.hostname` but no `peer.service`, and no service remapping rule will match.\n\nTo verify `peer.service` is being set before building a rule:\n\n```bash\npup traces search --query \"@peer.service:\u003CENTITY_NAME>\" --from 15m --limit 5\n```\n\nIf zero results — the tracer is not setting `peer.service`. Ask the user to add `DD_TRACE_PEER_SERVICE_DEFAULTS_ENABLED=true` to their service's environment and redeploy before continuing.\n\n**Filter syntax** — a standard Datadog event-grammar query string:\n\n| Goal | Filter |\n|---|---|\n| Exact service match | `service:payments` |\n| All services with a prefix | `service:deploy-test*` |\n| All services with a suffix | `service:*.tropos` |\n| All services containing a string | `service:*payments*` |\n| All inferred services under a domain | `peer.service:*.shopify.com` |\n| Service in one environment only | `service:payments AND env:prod` |\n| Multiple possible values | `service:(payments OR billing)` |\n\n> **Supported operations only:** The above forms — exact match, wildcards, `AND`\u002F`OR` — are the only accepted operations. More advanced query syntax (CIDR ranges, numeric comparisons, fuzzy matching, etc.) is not supported and will be rejected by the API with a filter syntax error.\n\n**New name syntax** — the `value` field in `rewrite_tag_rules`:\n\n| Form | Example | Use for |\n|---|---|---|\n| Static string | `my-service` | Every matched entity gets exactly this name |\n| Tag interpolation | `{{service}}` | Substitute the full value of a tag |\n| Tag + regex capture | `{{service\\|^(.+?)\\..*$}}` | Extract part of a tag value (non-greedy capture) |\n\n**Regex constraints for `{{tag\\|regex}}`:**\n- Maximum **1 capture group** per expression\n- **No greedy quantifiers inside capture groups** — use non-greedy variants: `(.+?)` not `(.+)`, `(.*?)` not `(.*)`\n- Quantifiers on capture groups themselves (e.g. `(foo)+`) are not allowed\n- **No capture group** → the entire match is used as the replacement value\n- **Capture group spanning the entire match** (e.g. `^(.*)$`) is currently rejected by the UI and will soon be rejected by the API — if you want the full tag value, use tag interpolation (`{{service}}`) instead of a regex\n\n**Five remapping patterns:**\n\n| Pattern | User says… | Filter example | New name example |\n|---|---|---|---|\n| **N:1 group** | \"These N services are all the same thing\" | `peer.service:*.shopify.com` | `shopify` |\n| **Strip suffix\u002Fprefix** | \"The name has junk at the end\u002Fstart\" | `service:*.tropos` | `{{service\\|^(.+?)\\..*$}}` |\n| **1:1 rename** | \"We renamed this service and Datadog needs to match\" | `service:old-auth-service` | `auth-service` |\n| **Env split** | \"I want separate services per env but they all have the same name\" | `service:my-service AND env:prod` | `my-service-prod` |\n| **Prefix normalization** | \"All services should start with an env or team name\" | `service:payments*` | `{{env}}-{{service}}` |\n\n---\n\n## Triggers\n\nInvoke this skill when the user wants to:\n- Rename a service in Datadog without re-instrumenting\n- Collapse multiple inferred service names into one (e.g. many `api.shopify.com\u002F*` variants → `shopify`)\n- Strip environment suffixes, version tags, or deployment metadata baked into service names\n- Normalize `peer.service` names to something meaningful\n- Rename a service after an org change, product rebrand, or migration\n- Split a single service into per-env variants (`my-service` + `env:prod` → `my-service-prod`)\n- List, review, or delete existing service remapping rules\n\nDo NOT invoke this skill if:\n- The user wants to rename the service in their application code — that requires a tracer config change (`DD_SERVICE`), not a remapping rule\n- The user wants to correlate telemetry across infrastructure tags — that is the \"Correlate telemetry\" action type in the UI, not remapping\n\n---\n\n## Prerequisites\n\n### pup-cli: check, install, and authenticate\n\n### Claude runs\n\n```bash\npup --version\n```\n\nIf not found:\n\n### Claude runs\n\n```bash\nbrew tap datadog-labs\u002Fpack\nbrew install pup\n```\n\nCheck auth:\n```bash\npup auth status\n```\n\nIf not authenticated:\n\n### Claude runs\n\n```bash\npup auth login\n```\n\n> This opens a browser tab for OAuth. Complete the login there — Claude will continue once the command exits.\n\n### Credentials for write operations\n\n`pup apm service-remapping list` and `get` work with OAuth. Create, update, and delete require API keys (`DD_API_KEY`, `DD_APP_KEY`, `DD_SITE`) until `apm_service_renaming_write` is added to pup's OAuth scopes.\n\n### Claude runs\n\n```bash\necho \"DD_API_KEY set: $([ -n \"${DD_API_KEY:-}\" ] && echo yes || echo no)\"\necho \"DD_APP_KEY set: $([ -n \"${DD_APP_KEY:-}\" ] && echo yes || echo no)\"\necho \"DD_SITE: ${DD_SITE:-not set (defaulting to datadoghq.com)}\"\n```\n\nIf any are missing and you need to create\u002Fupdate\u002Fdelete rules:\n\n### What you need to do in a terminal\n\n```bash\nexport DD_API_KEY=\u003Cyour-api-key>\nexport DD_APP_KEY=\u003Cyour-app-key>\nexport DD_SITE=datadoghq.com   # adjust for your site\n```\n\n> Common sites: `datadoghq.com` (US1), `datadoghq.eu` (EU1), `us3.datadoghq.com`, `us5.datadoghq.com`, `ap1.datadoghq.com`\n\nWait for the user to set credentials, then re-run the check above before continuing.\n\n---\n\n## Context to resolve before acting\n\n| Variable | How to resolve |\n|---|---|\n| `ENV` | Required before creating the rule (Step 4). Ask the user — do NOT assume `prod`. Read-only verification and impact preview do not need `ENV` and should run first. |\n| `ORIGINAL_SERVICE` | Current service name(s) to remap — discover with `pup apm services list` or ask the user |\n| `ENTITY_TYPE` | Instrumented service (`rule_type: 0`) or inferred entity (`rule_type: 1`)? Ask if unclear — see Domain Knowledge |\n| `TARGET_NAME` | The desired new service name — ask the user |\n| `PATTERN` | Which pattern applies — identify from the user's description (see Domain Knowledge above) |\n\n---\n\n## Step 0: Discover Current Service Names\n\nIf the user hasn't specified exact names to remap, discover what exists first:\n\n### Claude runs\n\n```bash\npup apm services list --from 1h          # use --env \u003CENV> to target a single environment\npup traces search --query \"service:\u003CPARTIAL_NAME>\" --from 1h --limit 20\n```\n\nUse the output to help the user identify exact service names. Ask the user to confirm which names they want remapped before proceeding.\n\n---\n\n## Step 1: Build the Rule\n\nWork through each component before writing any JSON.\n\n### 1a. Check for integration override names\n\nSome service names (e.g. `grpc-client`, `net\u002Fhttp`, `aws.s3`, `redis`) are **integration-generated overrides** — the tracer auto-tags spans with them based on the library being used, not a user-set `service` tag. Remapping these with a service remapping rule is the wrong tool: the override is injected per-span by the integration, so the remapped name will keep re-appearing unless the override itself is removed.\n\n**How to detect:** if the service name looks like a well-known integration name (single-word library names, `\u003Cprotocol>-\u003Cclient>` patterns, `\u003Cvendor>.\u003Cresource>` patterns), ask the user:\n\n> *\"The name `\u003CSERVICE>` looks like an integration override — a name the tracer sets automatically on spans from the `\u003CLIBRARY>` integration, not a user-configured service name. Service remapping won't stick here because the override is re-applied on every span. The right fix is **integration override removal**, which strips these auto-names so the parent service's name propagates instead. This is currently only configurable in the Datadog UI under APM → Setup → Service Remapping → Integration Override Removal. Do you want to handle it there, or proceed with a remapping rule anyway?\"*\n\nIf the user confirms it is an integration override, stop here and direct them to the UI. Do not create a remapping rule.\n\n### 1b. Entity type\n\n[DECISION: entity type — ask the user if unclear]\n- Does the service appear because a tracer explicitly set its `service` tag? → `rule_type: 0` (SERVICE)\n- Does it appear in the service map from outbound calls (e.g. a database, queue, or external API)? → `rule_type: 1` (INFERRED_ENTITY)\n\nIf the user wants to remap an inferred entity, verify `peer.service` is set before proceeding — see the prerequisite in Domain Knowledge. If it is not set, stop and ask the user to enable `DD_TRACE_PEER_SERVICE_DEFAULTS_ENABLED=true` first.\n\n### 1c. Filter\n\nWrite a single event-grammar query string targeting the service(s) to remap. Use the filter syntax and pattern table in Domain Knowledge to pick the right form. **State the filter expression verbatim in the planned-rule preview (Step 3)** — it is the user's primary way to verify the rule will match the intended entities, and they cannot evaluate the rule without it.\n\n### 1d. New name (`value`)\n\nUse the new name syntax and regex table in Domain Knowledge to pick the right form. For regex values, apply the constraints listed there.\n\n### 1e. Rule name\n\nSuggest a descriptive name. Examples:\n- `collapse-shopify-inferred-services`\n- `strip-tropos-suffix`\n- `rename-old-auth-to-auth-service`\n- `env-split-my-service-prod`\n\n---\n\n## Step 2: Preview Impact\n\nBefore constructing the JSON, check what will be affected:\n\n### Claude runs\n\n```bash\n# Confirm telemetry exists for the targeted service (zero spans = wrong query or wrong env)\npup traces search --query \"service:\u003CORIGINAL_SERVICE>\" --from 15m --limit 5\n\n# Check for monitors referencing the old service name\npup monitors list | grep -i \"\u003CORIGINAL_SERVICE>\"\n\n# Check for dashboards referencing the old service name\npup dashboards list | grep -i \"\u003CORIGINAL_SERVICE>\"\n\n# List existing service remapping rules that may conflict\npup apm service-remapping list\n```\n\nReport to the user:\n\n| Item | What to surface |\n|---|---|\n| **Telemetry volume** | Non-zero spans confirm the filter will match real data. Zero = likely wrong service name or env. |\n| **Monitors** | Any monitor referencing the old service name will silently break after remapping. List them and offer to update. |\n| **Dashboards** | Any dashboard with the old service name in its title will have stale references after remapping. List them and offer to update. |\n| **Conflicting rules** | Existing rules targeting the same service may be overridden. Show conflicts and ask the user to confirm. |\n\n**Known gaps — Claude cannot verify these automatically:**\n\nRemapping a service name can also break the following. Claude has no `pup` commands to check them today, so surface this as a manual checklist for the user before they confirm:\n\n> *\"Before I create this rule, please verify `\u003CORIGINAL_SERVICE>` is not referenced in any of the following — they won't update automatically after remapping:*\n> - *Spans-to-metrics rules (APM → Setup → Generate Metrics)*\n> - *Trace-to-metrics rules*\n> - *Span retention filters (APM → Setup → Retention Filters)*\n> - *Logs-to-metrics rules (Logs → Generate Metrics)*\n> - *Any pipeline, alert, or SLO that acts on the service name*\"\n\nIf monitors reference the old service name, ask:\n> *\"I found `\u003CN>` monitor(s) referencing `\u003CORIGINAL_SERVICE>`. After remapping, they'll need to be updated to use `\u003CTARGET_NAME>`. Want me to update them now?\"*\n\n---\n\n## Step 3: Confirm the Rule\n\nShow the user the planned rule and confirm before creating. **Batch any unresolved context variables into this same prompt** — do not ask for them in a separate earlier turn. One round-trip, not two.\n\nIf the filter doesn't already scope to an environment, ask whether to add one — env scoping is done by appending `AND env:\u003CENV>` to the filter expression, not via a separate API parameter.\n\n> *\"I'm planning rule `\u003CRULE_NAME>` with filter `\u003CFILTER>` mapping `\u003CORIGINAL_SERVICE>` → `\u003CTARGET_NAME>` (rule_type: `\u003CTYPE>`). Should this be scoped to a specific environment? If so, I'll add `AND env:\u003CENV>` to the filter. Is this OK to proceed?\"*\n\nWait for confirmation before continuing.\n\n---\n\n## Step 4: Create the Rule\n\n### Claude runs\n\n```bash\npup apm service-remapping create \\\n  --name \"\u003CRULE_NAME>\" \\\n  --filter \"\u003CFILTER>\" \\\n  --rule-type \u003CTYPE> \\\n  --value \"\u003CTARGET_NAME>\"\n```\n\nIf the response contains an `id` field — creation succeeded. Record the `id` and `version` values from the response.\n\nERROR: `400 Bad Request` with \"Filter expression has invalid syntax\" — the filter query is malformed. Check glob syntax and boolean operators.\n\nERROR: `400 Bad Request` with \"Template value in target name is invalid\" — the `value` regex is invalid. Check: max 1 capture group, non-greedy quantifiers inside groups (`(.+?)` not `(.+)`).\n\nERROR: `401 Unauthorized` — credentials are invalid or expired. Re-check `DD_API_KEY` and `DD_APP_KEY`.\n\nERROR: `403 Forbidden` — the API key lacks `apm_service_renaming_write` permission.\n\n---\n\n## Step 5: Verify\n\nAllow 2–5 minutes for the rule to propagate, then confirm it is active.\n\n### For SERVICE rules (rule_type 0)\n\n### Claude runs\n\n```bash\n# Confirm new service name appears in APM\npup apm services list --env \u003CENV> --from 5m\n\n# Confirm traces are arriving under the new name\npup traces search --query \"service:\u003CTARGET_NAME>\" --from 5m --limit 5\n```\n\nIf `\u003CTARGET_NAME>` appears in either — rule is active.\n\n### For INFERRED_ENTITY rules (rule_type 1)\n\nInferred entities don't produce their own spans, so they won't appear in `pup apm services list` or `pup traces search`. Verify in two steps:\n\n**Step 5a — confirm the rule is stored correctly:**\n\n### Claude runs\n\n```bash\npup apm service-remapping get \u003CRULE_ID>\n```\n\nConfirm the filter and value match what you intended.\n\n**Step 5b — confirm the entity name changed in the service map:**\n\nAsk the user to check the APM Service Map in the Datadog UI and look for `\u003CTARGET_NAME>` where `\u003CORIGINAL_SERVICE>` used to appear. The service map is the authoritative view for inferred entity names.\n\nAlternatively, confirm new `peer.service` values are arriving on spans from the instrumented service:\n\n### Claude runs\n\n```bash\npup traces search --query \"service:\u003CINSTRUMENTED_SERVICE> @peer.service:\u003CTARGET_NAME>\" --from 5m --limit 5\n```\n\nIf spans appear with `peer.service:\u003CTARGET_NAME>` — rule is active.\n\nERROR: New name not appearing after 5 minutes:\n- Confirm old service is still sending traces with the original `peer.service`: `pup traces search --query \"@peer.service:\u003CORIGINAL_SERVICE>\" --from 5m`\n- If old name still appears, propagation may still be in progress — wait 2 more minutes and retry\n- If neither name appears, confirm `DD_TRACE_PEER_SERVICE_DEFAULTS_ENABLED=true` is set on the instrumented service — without it `peer.service` is never set and the rule will never fire\n\n---\n\n## Managing Existing Rules\n\n### List all rules\n\n### Claude runs\n\n```bash\npup apm service-remapping list\n```\n\n### Get a single rule\n\n### Claude runs\n\n```bash\npup apm service-remapping get \u003CRULE_ID>\n```\n\n### Update a rule\n\nUpdate requires the current `version` from list\u002Fget output. Show the proposed changes to the user and confirm before running:\n\n### Claude runs\n\n```bash\npup apm service-remapping update \u003CRULE_ID> \\\n  --name \"\u003CRULE_NAME>\" \\\n  --filter \"\u003CFILTER>\" \\\n  --rule-type \u003CTYPE> \\\n  --value \"\u003CNEW_NAME>\" \\\n  --version \u003CVERSION>\n```\n\nERROR: `409 Conflict` — the rule was modified since you fetched it. Re-fetch with `get` to get the current version and retry.\n\n### Delete a rule\n\nShow the user the rule's name and filter first, then ask for confirmation. Delete requires both the rule `id` and `version` from the list\u002Fget output:\n\n### Claude runs\n\n```bash\npup apm service-remapping delete \u003CRULE_ID> \u003CRULE_VERSION>\n```\n\nERROR: `409 Conflict` — the rule was modified since you fetched it. Re-fetch with `get` to get the current version and retry.\n\n---\n\n## Done\n\nExit when ALL of the following are true:\n- [ ] Rule shown to user and confirmed before creation\n- [ ] Rule created and `id` returned in response\n- [ ] For SERVICE rules: new service name visible in `pup apm services list` or `pup traces search`\n- [ ] For INFERRED_ENTITY rules: user confirmed new entity name appears in APM Service Map, or spans show `peer.service:\u003CTARGET_NAME>`\n- [ ] Impacted monitors identified and offered for update\n- [ ] User confirmed the remapping matches their intent\n\n---\n\n## Security constraints\n\n- Never write a raw API key into any file or chat message — always use `$DD_API_KEY` and `$DD_APP_KEY`\n- Never create or delete a rule without explicit user confirmation — show the full rule before creating\n- Never assume `prod` as the environment — always confirm with the user\n- Never run DELETE without showing the user the rule's name and filter first\n",{"data":37,"body":43},{"name":4,"description":6,"metadata":38},{"version":39,"author":8,"repository":26,"tags":40,"alwaysApply":41,"tools":42},"1.0.0","datadog,apm,service-remapping,service-naming,inferred-services,peer-service","false","pup",{"type":44,"children":45},"root",[46,55,88,92,99,104,114,122,240,255,275,287,322,363,375,441,461,471,612,641,667,760,775,879,887,1086,1089,1095,1100,1181,1186,1207,1210,1216,1223,1229,1248,1253,1258,1301,1306,1330,1335,1340,1363,1371,1377,1426,1431,1667,1672,1678,1766,1810,1815,1818,1824,1970,1973,1979,1984,1989,2081,2086,2089,2095,2100,2106,2154,2180,2215,2220,2226,2234,2268,2287,2293,2305,2317,2322,2328,2333,2372,2375,2381,2386,2391,2615,2620,2706,2714,2726,2788,2793,2827,2830,2836,2848,2861,2916,2921,2924,2930,2935,3067,3094,3107,3138,3162,3181,3184,3190,3195,3201,3206,3336,3348,3354,3373,3381,3386,3431,3436,3444,3463,3475,3480,3535,3548,3553,3598,3601,3607,3613,3618,3644,3650,3655,3696,3702,3714,3719,3889,3908,3914,3932,3937,3997,4013,4016,4022,4027,4112,4115,4121,4164],{"type":47,"tag":48,"props":49,"children":51},"element","h1",{"id":50},"apm-service-remapping",[52],{"type":53,"value":54},"text","APM Service Remapping",{"type":47,"tag":56,"props":57,"children":58},"blockquote",{},[59],{"type":47,"tag":60,"props":61,"children":62},"p",{},[63,69,71,78,80,86],{"type":47,"tag":64,"props":65,"children":66},"strong",{},[67],{"type":53,"value":68},"Before acting:",{"type":53,"value":70}," Surface an impact preview (monitors\u002Fdashboards referencing the old service name) before presenting the planned rule. For inferred-entity remaps, also confirm ",{"type":47,"tag":72,"props":73,"children":75},"code",{"className":74},[],[76],{"type":53,"value":77},"peer.service",{"type":53,"value":79}," is set on outbound spans. Variables from ",{"type":47,"tag":72,"props":81,"children":83},{"className":82},[],[84],{"type":53,"value":85},"## Context to resolve before acting",{"type":53,"value":87}," can be gathered alongside that preview rather than blocking it.",{"type":47,"tag":89,"props":90,"children":91},"hr",{},[],{"type":47,"tag":93,"props":94,"children":96},"h2",{"id":95},"how-service-remapping-works-domain-knowledge",[97],{"type":53,"value":98},"How Service Remapping Works — Domain Knowledge",{"type":47,"tag":60,"props":100,"children":101},{},[102],{"type":53,"value":103},"Read this before building any rule. It gives you the mental model to construct the right filter and catch edge cases.",{"type":47,"tag":60,"props":105,"children":106},{},[107,112],{"type":47,"tag":64,"props":108,"children":109},{},[110],{"type":53,"value":111},"What remapping does:",{"type":53,"value":113}," A rule intercepts telemetry at ingestion time and rewrites the service name before indexing. A rule says: \"for any entity matching this filter, replace its service name with this new value.\"",{"type":47,"tag":60,"props":115,"children":116},{},[117],{"type":47,"tag":64,"props":118,"children":119},{},[120],{"type":53,"value":121},"Two entity types — pick the right one:",{"type":47,"tag":123,"props":124,"children":125},"table",{},[126,156],{"type":47,"tag":127,"props":128,"children":129},"thead",{},[130],{"type":47,"tag":131,"props":132,"children":133},"tr",{},[134,140,151],{"type":47,"tag":135,"props":136,"children":137},"th",{},[138],{"type":53,"value":139},"Entity type",{"type":47,"tag":135,"props":141,"children":142},{},[143,149],{"type":47,"tag":72,"props":144,"children":146},{"className":145},[],[147],{"type":53,"value":148},"rule_type",{"type":53,"value":150}," integer",{"type":47,"tag":135,"props":152,"children":153},{},[154],{"type":53,"value":155},"What it targets",{"type":47,"tag":157,"props":158,"children":159},"tbody",{},[160,194],{"type":47,"tag":131,"props":161,"children":162},{},[163,172,181],{"type":47,"tag":164,"props":165,"children":166},"td",{},[167],{"type":47,"tag":64,"props":168,"children":169},{},[170],{"type":53,"value":171},"SERVICE",{"type":47,"tag":164,"props":173,"children":174},{},[175],{"type":47,"tag":72,"props":176,"children":178},{"className":177},[],[179],{"type":53,"value":180},"0",{"type":47,"tag":164,"props":182,"children":183},{},[184,186,192],{"type":53,"value":185},"Instrumented services — have spans with an explicit ",{"type":47,"tag":72,"props":187,"children":189},{"className":188},[],[190],{"type":53,"value":191},"service",{"type":53,"value":193}," tag set by a tracer",{"type":47,"tag":131,"props":195,"children":196},{},[197,205,214],{"type":47,"tag":164,"props":198,"children":199},{},[200],{"type":47,"tag":64,"props":201,"children":202},{},[203],{"type":53,"value":204},"INFERRED_ENTITY",{"type":47,"tag":164,"props":206,"children":207},{},[208],{"type":47,"tag":72,"props":209,"children":211},{"className":210},[],[212],{"type":53,"value":213},"1",{"type":47,"tag":164,"props":215,"children":216},{},[217,219,224,226,238],{"type":53,"value":218},"Auto-detected from outbound calls — named from ",{"type":47,"tag":72,"props":220,"children":222},{"className":221},[],[223],{"type":53,"value":77},{"type":53,"value":225},". ",{"type":47,"tag":64,"props":227,"children":228},{},[229,231,236],{"type":53,"value":230},"Requires ",{"type":47,"tag":72,"props":232,"children":234},{"className":233},[],[235],{"type":53,"value":77},{"type":53,"value":237}," to be set on outbound spans",{"type":53,"value":239}," (see prerequisite below).",{"type":47,"tag":60,"props":241,"children":242},{},[243],{"type":47,"tag":64,"props":244,"children":245},{},[246,248,253],{"type":53,"value":247},"Prerequisite for inferred entity remapping — ",{"type":47,"tag":72,"props":249,"children":251},{"className":250},[],[252],{"type":53,"value":77},{"type":53,"value":254}," must be set:",{"type":47,"tag":60,"props":256,"children":257},{},[258,260,265,267,273],{"type":53,"value":259},"Inferred entity remapping only works when the tracer sets ",{"type":47,"tag":72,"props":261,"children":263},{"className":262},[],[264],{"type":53,"value":77},{"type":53,"value":266}," on outbound spans. Without it, entities are keyed by ",{"type":47,"tag":72,"props":268,"children":270},{"className":269},[],[271],{"type":53,"value":272},"peer.hostname",{"type":53,"value":274}," and remapping rules will not apply.",{"type":47,"tag":60,"props":276,"children":277},{},[278,280,285],{"type":53,"value":279},"To enable this, set the following env var on the ",{"type":47,"tag":64,"props":281,"children":282},{},[283],{"type":53,"value":284},"instrumented service",{"type":53,"value":286}," (not the downstream dependency):",{"type":47,"tag":288,"props":289,"children":294},"pre",{"className":290,"code":291,"language":292,"meta":293,"style":293},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","DD_TRACE_PEER_SERVICE_DEFAULTS_ENABLED=true\n","bash","",[295],{"type":47,"tag":72,"props":296,"children":297},{"__ignoreMap":293},[298],{"type":47,"tag":299,"props":300,"children":303},"span",{"class":301,"line":302},"line",1,[304,310,316],{"type":47,"tag":299,"props":305,"children":307},{"style":306},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[308],{"type":53,"value":309},"DD_TRACE_PEER_SERVICE_DEFAULTS_ENABLED",{"type":47,"tag":299,"props":311,"children":313},{"style":312},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[314],{"type":53,"value":315},"=",{"type":47,"tag":299,"props":317,"children":319},{"style":318},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[320],{"type":53,"value":321},"true\n",{"type":47,"tag":60,"props":323,"children":324},{},[325,327,332,334,339,341,347,349,354,356,361],{"type":53,"value":326},"This makes the ddtrace tracer automatically propagate ",{"type":47,"tag":72,"props":328,"children":330},{"className":329},[],[331],{"type":53,"value":77},{"type":53,"value":333}," from ",{"type":47,"tag":72,"props":335,"children":337},{"className":336},[],[338],{"type":53,"value":272},{"type":53,"value":340}," on outbound HTTP, gRPC, and database calls. Without this, ",{"type":47,"tag":72,"props":342,"children":344},{"className":343},[],[345],{"type":53,"value":346},"pup traces search",{"type":53,"value":348}," will show spans with ",{"type":47,"tag":72,"props":350,"children":352},{"className":351},[],[353],{"type":53,"value":272},{"type":53,"value":355}," but no ",{"type":47,"tag":72,"props":357,"children":359},{"className":358},[],[360],{"type":53,"value":77},{"type":53,"value":362},", and no service remapping rule will match.",{"type":47,"tag":60,"props":364,"children":365},{},[366,368,373],{"type":53,"value":367},"To verify ",{"type":47,"tag":72,"props":369,"children":371},{"className":370},[],[372],{"type":53,"value":77},{"type":53,"value":374}," is being set before building a rule:",{"type":47,"tag":288,"props":376,"children":378},{"className":290,"code":377,"language":292,"meta":293,"style":293},"pup traces search --query \"@peer.service:\u003CENTITY_NAME>\" --from 15m --limit 5\n",[379],{"type":47,"tag":72,"props":380,"children":381},{"__ignoreMap":293},[382],{"type":47,"tag":299,"props":383,"children":384},{"class":301,"line":302},[385,390,395,400,405,410,415,420,425,430,435],{"type":47,"tag":299,"props":386,"children":388},{"style":387},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[389],{"type":53,"value":42},{"type":47,"tag":299,"props":391,"children":392},{"style":318},[393],{"type":53,"value":394}," traces",{"type":47,"tag":299,"props":396,"children":397},{"style":318},[398],{"type":53,"value":399}," search",{"type":47,"tag":299,"props":401,"children":402},{"style":318},[403],{"type":53,"value":404}," --query",{"type":47,"tag":299,"props":406,"children":407},{"style":312},[408],{"type":53,"value":409}," \"",{"type":47,"tag":299,"props":411,"children":412},{"style":318},[413],{"type":53,"value":414},"@peer.service:\u003CENTITY_NAME>",{"type":47,"tag":299,"props":416,"children":417},{"style":312},[418],{"type":53,"value":419},"\"",{"type":47,"tag":299,"props":421,"children":422},{"style":318},[423],{"type":53,"value":424}," --from",{"type":47,"tag":299,"props":426,"children":427},{"style":318},[428],{"type":53,"value":429}," 15m",{"type":47,"tag":299,"props":431,"children":432},{"style":318},[433],{"type":53,"value":434}," --limit",{"type":47,"tag":299,"props":436,"children":438},{"style":437},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[439],{"type":53,"value":440}," 5\n",{"type":47,"tag":60,"props":442,"children":443},{},[444,446,451,453,459],{"type":53,"value":445},"If zero results — the tracer is not setting ",{"type":47,"tag":72,"props":447,"children":449},{"className":448},[],[450],{"type":53,"value":77},{"type":53,"value":452},". Ask the user to add ",{"type":47,"tag":72,"props":454,"children":456},{"className":455},[],[457],{"type":53,"value":458},"DD_TRACE_PEER_SERVICE_DEFAULTS_ENABLED=true",{"type":53,"value":460}," to their service's environment and redeploy before continuing.",{"type":47,"tag":60,"props":462,"children":463},{},[464,469],{"type":47,"tag":64,"props":465,"children":466},{},[467],{"type":53,"value":468},"Filter syntax",{"type":53,"value":470}," — a standard Datadog event-grammar query string:",{"type":47,"tag":123,"props":472,"children":473},{},[474,490],{"type":47,"tag":127,"props":475,"children":476},{},[477],{"type":47,"tag":131,"props":478,"children":479},{},[480,485],{"type":47,"tag":135,"props":481,"children":482},{},[483],{"type":53,"value":484},"Goal",{"type":47,"tag":135,"props":486,"children":487},{},[488],{"type":53,"value":489},"Filter",{"type":47,"tag":157,"props":491,"children":492},{},[493,510,527,544,561,578,595],{"type":47,"tag":131,"props":494,"children":495},{},[496,501],{"type":47,"tag":164,"props":497,"children":498},{},[499],{"type":53,"value":500},"Exact service match",{"type":47,"tag":164,"props":502,"children":503},{},[504],{"type":47,"tag":72,"props":505,"children":507},{"className":506},[],[508],{"type":53,"value":509},"service:payments",{"type":47,"tag":131,"props":511,"children":512},{},[513,518],{"type":47,"tag":164,"props":514,"children":515},{},[516],{"type":53,"value":517},"All services with a prefix",{"type":47,"tag":164,"props":519,"children":520},{},[521],{"type":47,"tag":72,"props":522,"children":524},{"className":523},[],[525],{"type":53,"value":526},"service:deploy-test*",{"type":47,"tag":131,"props":528,"children":529},{},[530,535],{"type":47,"tag":164,"props":531,"children":532},{},[533],{"type":53,"value":534},"All services with a suffix",{"type":47,"tag":164,"props":536,"children":537},{},[538],{"type":47,"tag":72,"props":539,"children":541},{"className":540},[],[542],{"type":53,"value":543},"service:*.tropos",{"type":47,"tag":131,"props":545,"children":546},{},[547,552],{"type":47,"tag":164,"props":548,"children":549},{},[550],{"type":53,"value":551},"All services containing a string",{"type":47,"tag":164,"props":553,"children":554},{},[555],{"type":47,"tag":72,"props":556,"children":558},{"className":557},[],[559],{"type":53,"value":560},"service:*payments*",{"type":47,"tag":131,"props":562,"children":563},{},[564,569],{"type":47,"tag":164,"props":565,"children":566},{},[567],{"type":53,"value":568},"All inferred services under a domain",{"type":47,"tag":164,"props":570,"children":571},{},[572],{"type":47,"tag":72,"props":573,"children":575},{"className":574},[],[576],{"type":53,"value":577},"peer.service:*.shopify.com",{"type":47,"tag":131,"props":579,"children":580},{},[581,586],{"type":47,"tag":164,"props":582,"children":583},{},[584],{"type":53,"value":585},"Service in one environment only",{"type":47,"tag":164,"props":587,"children":588},{},[589],{"type":47,"tag":72,"props":590,"children":592},{"className":591},[],[593],{"type":53,"value":594},"service:payments AND env:prod",{"type":47,"tag":131,"props":596,"children":597},{},[598,603],{"type":47,"tag":164,"props":599,"children":600},{},[601],{"type":53,"value":602},"Multiple possible values",{"type":47,"tag":164,"props":604,"children":605},{},[606],{"type":47,"tag":72,"props":607,"children":609},{"className":608},[],[610],{"type":53,"value":611},"service:(payments OR billing)",{"type":47,"tag":56,"props":613,"children":614},{},[615],{"type":47,"tag":60,"props":616,"children":617},{},[618,623,625,631,633,639],{"type":47,"tag":64,"props":619,"children":620},{},[621],{"type":53,"value":622},"Supported operations only:",{"type":53,"value":624}," The above forms — exact match, wildcards, ",{"type":47,"tag":72,"props":626,"children":628},{"className":627},[],[629],{"type":53,"value":630},"AND",{"type":53,"value":632},"\u002F",{"type":47,"tag":72,"props":634,"children":636},{"className":635},[],[637],{"type":53,"value":638},"OR",{"type":53,"value":640}," — are the only accepted operations. More advanced query syntax (CIDR ranges, numeric comparisons, fuzzy matching, etc.) is not supported and will be rejected by the API with a filter syntax error.",{"type":47,"tag":60,"props":642,"children":643},{},[644,649,651,657,659,665],{"type":47,"tag":64,"props":645,"children":646},{},[647],{"type":53,"value":648},"New name syntax",{"type":53,"value":650}," — the ",{"type":47,"tag":72,"props":652,"children":654},{"className":653},[],[655],{"type":53,"value":656},"value",{"type":53,"value":658}," field in ",{"type":47,"tag":72,"props":660,"children":662},{"className":661},[],[663],{"type":53,"value":664},"rewrite_tag_rules",{"type":53,"value":666},":",{"type":47,"tag":123,"props":668,"children":669},{},[670,691],{"type":47,"tag":127,"props":671,"children":672},{},[673],{"type":47,"tag":131,"props":674,"children":675},{},[676,681,686],{"type":47,"tag":135,"props":677,"children":678},{},[679],{"type":53,"value":680},"Form",{"type":47,"tag":135,"props":682,"children":683},{},[684],{"type":53,"value":685},"Example",{"type":47,"tag":135,"props":687,"children":688},{},[689],{"type":53,"value":690},"Use for",{"type":47,"tag":157,"props":692,"children":693},{},[694,716,738],{"type":47,"tag":131,"props":695,"children":696},{},[697,702,711],{"type":47,"tag":164,"props":698,"children":699},{},[700],{"type":53,"value":701},"Static string",{"type":47,"tag":164,"props":703,"children":704},{},[705],{"type":47,"tag":72,"props":706,"children":708},{"className":707},[],[709],{"type":53,"value":710},"my-service",{"type":47,"tag":164,"props":712,"children":713},{},[714],{"type":53,"value":715},"Every matched entity gets exactly this name",{"type":47,"tag":131,"props":717,"children":718},{},[719,724,733],{"type":47,"tag":164,"props":720,"children":721},{},[722],{"type":53,"value":723},"Tag interpolation",{"type":47,"tag":164,"props":725,"children":726},{},[727],{"type":47,"tag":72,"props":728,"children":730},{"className":729},[],[731],{"type":53,"value":732},"{{service}}",{"type":47,"tag":164,"props":734,"children":735},{},[736],{"type":53,"value":737},"Substitute the full value of a tag",{"type":47,"tag":131,"props":739,"children":740},{},[741,746,755],{"type":47,"tag":164,"props":742,"children":743},{},[744],{"type":53,"value":745},"Tag + regex capture",{"type":47,"tag":164,"props":747,"children":748},{},[749],{"type":47,"tag":72,"props":750,"children":752},{"className":751},[],[753],{"type":53,"value":754},"{{service|^(.+?)\\..*$}}",{"type":47,"tag":164,"props":756,"children":757},{},[758],{"type":53,"value":759},"Extract part of a tag value (non-greedy capture)",{"type":47,"tag":60,"props":761,"children":762},{},[763],{"type":47,"tag":64,"props":764,"children":765},{},[766,768,774],{"type":53,"value":767},"Regex constraints for ",{"type":47,"tag":72,"props":769,"children":771},{"className":770},[],[772],{"type":53,"value":773},"{{tag\\|regex}}",{"type":53,"value":666},{"type":47,"tag":776,"props":777,"children":778},"ul",{},[779,792,831,844,854],{"type":47,"tag":780,"props":781,"children":782},"li",{},[783,785,790],{"type":53,"value":784},"Maximum ",{"type":47,"tag":64,"props":786,"children":787},{},[788],{"type":53,"value":789},"1 capture group",{"type":53,"value":791}," per expression",{"type":47,"tag":780,"props":793,"children":794},{},[795,800,802,808,810,816,818,824,825],{"type":47,"tag":64,"props":796,"children":797},{},[798],{"type":53,"value":799},"No greedy quantifiers inside capture groups",{"type":53,"value":801}," — use non-greedy variants: ",{"type":47,"tag":72,"props":803,"children":805},{"className":804},[],[806],{"type":53,"value":807},"(.+?)",{"type":53,"value":809}," not ",{"type":47,"tag":72,"props":811,"children":813},{"className":812},[],[814],{"type":53,"value":815},"(.+)",{"type":53,"value":817},", ",{"type":47,"tag":72,"props":819,"children":821},{"className":820},[],[822],{"type":53,"value":823},"(.*?)",{"type":53,"value":809},{"type":47,"tag":72,"props":826,"children":828},{"className":827},[],[829],{"type":53,"value":830},"(.*)",{"type":47,"tag":780,"props":832,"children":833},{},[834,836,842],{"type":53,"value":835},"Quantifiers on capture groups themselves (e.g. ",{"type":47,"tag":72,"props":837,"children":839},{"className":838},[],[840],{"type":53,"value":841},"(foo)+",{"type":53,"value":843},") are not allowed",{"type":47,"tag":780,"props":845,"children":846},{},[847,852],{"type":47,"tag":64,"props":848,"children":849},{},[850],{"type":53,"value":851},"No capture group",{"type":53,"value":853}," → the entire match is used as the replacement value",{"type":47,"tag":780,"props":855,"children":856},{},[857,862,864,870,872,877],{"type":47,"tag":64,"props":858,"children":859},{},[860],{"type":53,"value":861},"Capture group spanning the entire match",{"type":53,"value":863}," (e.g. ",{"type":47,"tag":72,"props":865,"children":867},{"className":866},[],[868],{"type":53,"value":869},"^(.*)$",{"type":53,"value":871},") is currently rejected by the UI and will soon be rejected by the API — if you want the full tag value, use tag interpolation (",{"type":47,"tag":72,"props":873,"children":875},{"className":874},[],[876],{"type":53,"value":732},{"type":53,"value":878},") instead of a regex",{"type":47,"tag":60,"props":880,"children":881},{},[882],{"type":47,"tag":64,"props":883,"children":884},{},[885],{"type":53,"value":886},"Five remapping patterns:",{"type":47,"tag":123,"props":888,"children":889},{},[890,916],{"type":47,"tag":127,"props":891,"children":892},{},[893],{"type":47,"tag":131,"props":894,"children":895},{},[896,901,906,911],{"type":47,"tag":135,"props":897,"children":898},{},[899],{"type":53,"value":900},"Pattern",{"type":47,"tag":135,"props":902,"children":903},{},[904],{"type":53,"value":905},"User says…",{"type":47,"tag":135,"props":907,"children":908},{},[909],{"type":53,"value":910},"Filter example",{"type":47,"tag":135,"props":912,"children":913},{},[914],{"type":53,"value":915},"New name example",{"type":47,"tag":157,"props":917,"children":918},{},[919,952,984,1018,1052],{"type":47,"tag":131,"props":920,"children":921},{},[922,930,935,943],{"type":47,"tag":164,"props":923,"children":924},{},[925],{"type":47,"tag":64,"props":926,"children":927},{},[928],{"type":53,"value":929},"N:1 group",{"type":47,"tag":164,"props":931,"children":932},{},[933],{"type":53,"value":934},"\"These N services are all the same thing\"",{"type":47,"tag":164,"props":936,"children":937},{},[938],{"type":47,"tag":72,"props":939,"children":941},{"className":940},[],[942],{"type":53,"value":577},{"type":47,"tag":164,"props":944,"children":945},{},[946],{"type":47,"tag":72,"props":947,"children":949},{"className":948},[],[950],{"type":53,"value":951},"shopify",{"type":47,"tag":131,"props":953,"children":954},{},[955,963,968,976],{"type":47,"tag":164,"props":956,"children":957},{},[958],{"type":47,"tag":64,"props":959,"children":960},{},[961],{"type":53,"value":962},"Strip suffix\u002Fprefix",{"type":47,"tag":164,"props":964,"children":965},{},[966],{"type":53,"value":967},"\"The name has junk at the end\u002Fstart\"",{"type":47,"tag":164,"props":969,"children":970},{},[971],{"type":47,"tag":72,"props":972,"children":974},{"className":973},[],[975],{"type":53,"value":543},{"type":47,"tag":164,"props":977,"children":978},{},[979],{"type":47,"tag":72,"props":980,"children":982},{"className":981},[],[983],{"type":53,"value":754},{"type":47,"tag":131,"props":985,"children":986},{},[987,995,1000,1009],{"type":47,"tag":164,"props":988,"children":989},{},[990],{"type":47,"tag":64,"props":991,"children":992},{},[993],{"type":53,"value":994},"1:1 rename",{"type":47,"tag":164,"props":996,"children":997},{},[998],{"type":53,"value":999},"\"We renamed this service and Datadog needs to match\"",{"type":47,"tag":164,"props":1001,"children":1002},{},[1003],{"type":47,"tag":72,"props":1004,"children":1006},{"className":1005},[],[1007],{"type":53,"value":1008},"service:old-auth-service",{"type":47,"tag":164,"props":1010,"children":1011},{},[1012],{"type":47,"tag":72,"props":1013,"children":1015},{"className":1014},[],[1016],{"type":53,"value":1017},"auth-service",{"type":47,"tag":131,"props":1019,"children":1020},{},[1021,1029,1034,1043],{"type":47,"tag":164,"props":1022,"children":1023},{},[1024],{"type":47,"tag":64,"props":1025,"children":1026},{},[1027],{"type":53,"value":1028},"Env split",{"type":47,"tag":164,"props":1030,"children":1031},{},[1032],{"type":53,"value":1033},"\"I want separate services per env but they all have the same name\"",{"type":47,"tag":164,"props":1035,"children":1036},{},[1037],{"type":47,"tag":72,"props":1038,"children":1040},{"className":1039},[],[1041],{"type":53,"value":1042},"service:my-service AND env:prod",{"type":47,"tag":164,"props":1044,"children":1045},{},[1046],{"type":47,"tag":72,"props":1047,"children":1049},{"className":1048},[],[1050],{"type":53,"value":1051},"my-service-prod",{"type":47,"tag":131,"props":1053,"children":1054},{},[1055,1063,1068,1077],{"type":47,"tag":164,"props":1056,"children":1057},{},[1058],{"type":47,"tag":64,"props":1059,"children":1060},{},[1061],{"type":53,"value":1062},"Prefix normalization",{"type":47,"tag":164,"props":1064,"children":1065},{},[1066],{"type":53,"value":1067},"\"All services should start with an env or team name\"",{"type":47,"tag":164,"props":1069,"children":1070},{},[1071],{"type":47,"tag":72,"props":1072,"children":1074},{"className":1073},[],[1075],{"type":53,"value":1076},"service:payments*",{"type":47,"tag":164,"props":1078,"children":1079},{},[1080],{"type":47,"tag":72,"props":1081,"children":1083},{"className":1082},[],[1084],{"type":53,"value":1085},"{{env}}-{{service}}",{"type":47,"tag":89,"props":1087,"children":1088},{},[],{"type":47,"tag":93,"props":1090,"children":1092},{"id":1091},"triggers",[1093],{"type":53,"value":1094},"Triggers",{"type":47,"tag":60,"props":1096,"children":1097},{},[1098],{"type":53,"value":1099},"Invoke this skill when the user wants to:",{"type":47,"tag":776,"props":1101,"children":1102},{},[1103,1108,1128,1133,1145,1150,1176],{"type":47,"tag":780,"props":1104,"children":1105},{},[1106],{"type":53,"value":1107},"Rename a service in Datadog without re-instrumenting",{"type":47,"tag":780,"props":1109,"children":1110},{},[1111,1113,1119,1121,1126],{"type":53,"value":1112},"Collapse multiple inferred service names into one (e.g. many ",{"type":47,"tag":72,"props":1114,"children":1116},{"className":1115},[],[1117],{"type":53,"value":1118},"api.shopify.com\u002F*",{"type":53,"value":1120}," variants → ",{"type":47,"tag":72,"props":1122,"children":1124},{"className":1123},[],[1125],{"type":53,"value":951},{"type":53,"value":1127},")",{"type":47,"tag":780,"props":1129,"children":1130},{},[1131],{"type":53,"value":1132},"Strip environment suffixes, version tags, or deployment metadata baked into service names",{"type":47,"tag":780,"props":1134,"children":1135},{},[1136,1138,1143],{"type":53,"value":1137},"Normalize ",{"type":47,"tag":72,"props":1139,"children":1141},{"className":1140},[],[1142],{"type":53,"value":77},{"type":53,"value":1144}," names to something meaningful",{"type":47,"tag":780,"props":1146,"children":1147},{},[1148],{"type":53,"value":1149},"Rename a service after an org change, product rebrand, or migration",{"type":47,"tag":780,"props":1151,"children":1152},{},[1153,1155,1160,1162,1168,1170,1175],{"type":53,"value":1154},"Split a single service into per-env variants (",{"type":47,"tag":72,"props":1156,"children":1158},{"className":1157},[],[1159],{"type":53,"value":710},{"type":53,"value":1161}," + ",{"type":47,"tag":72,"props":1163,"children":1165},{"className":1164},[],[1166],{"type":53,"value":1167},"env:prod",{"type":53,"value":1169}," → ",{"type":47,"tag":72,"props":1171,"children":1173},{"className":1172},[],[1174],{"type":53,"value":1051},{"type":53,"value":1127},{"type":47,"tag":780,"props":1177,"children":1178},{},[1179],{"type":53,"value":1180},"List, review, or delete existing service remapping rules",{"type":47,"tag":60,"props":1182,"children":1183},{},[1184],{"type":53,"value":1185},"Do NOT invoke this skill if:",{"type":47,"tag":776,"props":1187,"children":1188},{},[1189,1202],{"type":47,"tag":780,"props":1190,"children":1191},{},[1192,1194,1200],{"type":53,"value":1193},"The user wants to rename the service in their application code — that requires a tracer config change (",{"type":47,"tag":72,"props":1195,"children":1197},{"className":1196},[],[1198],{"type":53,"value":1199},"DD_SERVICE",{"type":53,"value":1201},"), not a remapping rule",{"type":47,"tag":780,"props":1203,"children":1204},{},[1205],{"type":53,"value":1206},"The user wants to correlate telemetry across infrastructure tags — that is the \"Correlate telemetry\" action type in the UI, not remapping",{"type":47,"tag":89,"props":1208,"children":1209},{},[],{"type":47,"tag":93,"props":1211,"children":1213},{"id":1212},"prerequisites",[1214],{"type":53,"value":1215},"Prerequisites",{"type":47,"tag":1217,"props":1218,"children":1220},"h3",{"id":1219},"pup-cli-check-install-and-authenticate",[1221],{"type":53,"value":1222},"pup-cli: check, install, and authenticate",{"type":47,"tag":1217,"props":1224,"children":1226},{"id":1225},"claude-runs",[1227],{"type":53,"value":1228},"Claude runs",{"type":47,"tag":288,"props":1230,"children":1232},{"className":290,"code":1231,"language":292,"meta":293,"style":293},"pup --version\n",[1233],{"type":47,"tag":72,"props":1234,"children":1235},{"__ignoreMap":293},[1236],{"type":47,"tag":299,"props":1237,"children":1238},{"class":301,"line":302},[1239,1243],{"type":47,"tag":299,"props":1240,"children":1241},{"style":387},[1242],{"type":53,"value":42},{"type":47,"tag":299,"props":1244,"children":1245},{"style":318},[1246],{"type":53,"value":1247}," --version\n",{"type":47,"tag":60,"props":1249,"children":1250},{},[1251],{"type":53,"value":1252},"If not found:",{"type":47,"tag":1217,"props":1254,"children":1256},{"id":1255},"claude-runs-1",[1257],{"type":53,"value":1228},{"type":47,"tag":288,"props":1259,"children":1261},{"className":290,"code":1260,"language":292,"meta":293,"style":293},"brew tap datadog-labs\u002Fpack\nbrew install pup\n",[1262],{"type":47,"tag":72,"props":1263,"children":1264},{"__ignoreMap":293},[1265,1283],{"type":47,"tag":299,"props":1266,"children":1267},{"class":301,"line":302},[1268,1273,1278],{"type":47,"tag":299,"props":1269,"children":1270},{"style":387},[1271],{"type":53,"value":1272},"brew",{"type":47,"tag":299,"props":1274,"children":1275},{"style":318},[1276],{"type":53,"value":1277}," tap",{"type":47,"tag":299,"props":1279,"children":1280},{"style":318},[1281],{"type":53,"value":1282}," datadog-labs\u002Fpack\n",{"type":47,"tag":299,"props":1284,"children":1286},{"class":301,"line":1285},2,[1287,1291,1296],{"type":47,"tag":299,"props":1288,"children":1289},{"style":387},[1290],{"type":53,"value":1272},{"type":47,"tag":299,"props":1292,"children":1293},{"style":318},[1294],{"type":53,"value":1295}," install",{"type":47,"tag":299,"props":1297,"children":1298},{"style":318},[1299],{"type":53,"value":1300}," pup\n",{"type":47,"tag":60,"props":1302,"children":1303},{},[1304],{"type":53,"value":1305},"Check auth:",{"type":47,"tag":288,"props":1307,"children":1309},{"className":290,"code":1308,"language":292,"meta":293,"style":293},"pup auth status\n",[1310],{"type":47,"tag":72,"props":1311,"children":1312},{"__ignoreMap":293},[1313],{"type":47,"tag":299,"props":1314,"children":1315},{"class":301,"line":302},[1316,1320,1325],{"type":47,"tag":299,"props":1317,"children":1318},{"style":387},[1319],{"type":53,"value":42},{"type":47,"tag":299,"props":1321,"children":1322},{"style":318},[1323],{"type":53,"value":1324}," auth",{"type":47,"tag":299,"props":1326,"children":1327},{"style":318},[1328],{"type":53,"value":1329}," status\n",{"type":47,"tag":60,"props":1331,"children":1332},{},[1333],{"type":53,"value":1334},"If not authenticated:",{"type":47,"tag":1217,"props":1336,"children":1338},{"id":1337},"claude-runs-2",[1339],{"type":53,"value":1228},{"type":47,"tag":288,"props":1341,"children":1343},{"className":290,"code":1342,"language":292,"meta":293,"style":293},"pup auth login\n",[1344],{"type":47,"tag":72,"props":1345,"children":1346},{"__ignoreMap":293},[1347],{"type":47,"tag":299,"props":1348,"children":1349},{"class":301,"line":302},[1350,1354,1358],{"type":47,"tag":299,"props":1351,"children":1352},{"style":387},[1353],{"type":53,"value":42},{"type":47,"tag":299,"props":1355,"children":1356},{"style":318},[1357],{"type":53,"value":1324},{"type":47,"tag":299,"props":1359,"children":1360},{"style":318},[1361],{"type":53,"value":1362}," login\n",{"type":47,"tag":56,"props":1364,"children":1365},{},[1366],{"type":47,"tag":60,"props":1367,"children":1368},{},[1369],{"type":53,"value":1370},"This opens a browser tab for OAuth. Complete the login there — Claude will continue once the command exits.",{"type":47,"tag":1217,"props":1372,"children":1374},{"id":1373},"credentials-for-write-operations",[1375],{"type":53,"value":1376},"Credentials for write operations",{"type":47,"tag":60,"props":1378,"children":1379},{},[1380,1386,1388,1394,1396,1402,1403,1409,1410,1416,1418,1424],{"type":47,"tag":72,"props":1381,"children":1383},{"className":1382},[],[1384],{"type":53,"value":1385},"pup apm service-remapping list",{"type":53,"value":1387}," and ",{"type":47,"tag":72,"props":1389,"children":1391},{"className":1390},[],[1392],{"type":53,"value":1393},"get",{"type":53,"value":1395}," work with OAuth. Create, update, and delete require API keys (",{"type":47,"tag":72,"props":1397,"children":1399},{"className":1398},[],[1400],{"type":53,"value":1401},"DD_API_KEY",{"type":53,"value":817},{"type":47,"tag":72,"props":1404,"children":1406},{"className":1405},[],[1407],{"type":53,"value":1408},"DD_APP_KEY",{"type":53,"value":817},{"type":47,"tag":72,"props":1411,"children":1413},{"className":1412},[],[1414],{"type":53,"value":1415},"DD_SITE",{"type":53,"value":1417},") until ",{"type":47,"tag":72,"props":1419,"children":1421},{"className":1420},[],[1422],{"type":53,"value":1423},"apm_service_renaming_write",{"type":53,"value":1425}," is added to pup's OAuth scopes.",{"type":47,"tag":1217,"props":1427,"children":1429},{"id":1428},"claude-runs-3",[1430],{"type":53,"value":1228},{"type":47,"tag":288,"props":1432,"children":1434},{"className":290,"code":1433,"language":292,"meta":293,"style":293},"echo \"DD_API_KEY set: $([ -n \"${DD_API_KEY:-}\" ] && echo yes || echo no)\"\necho \"DD_APP_KEY set: $([ -n \"${DD_APP_KEY:-}\" ] && echo yes || echo no)\"\necho \"DD_SITE: ${DD_SITE:-not set (defaulting to datadoghq.com)}\"\n",[1435],{"type":47,"tag":72,"props":1436,"children":1437},{"__ignoreMap":293},[1438,1519,1587],{"type":47,"tag":299,"props":1439,"children":1440},{"class":301,"line":302},[1441,1447,1451,1456,1461,1466,1471,1475,1480,1485,1490,1495,1500,1505,1509,1514],{"type":47,"tag":299,"props":1442,"children":1444},{"style":1443},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[1445],{"type":53,"value":1446},"echo",{"type":47,"tag":299,"props":1448,"children":1449},{"style":312},[1450],{"type":53,"value":409},{"type":47,"tag":299,"props":1452,"children":1453},{"style":318},[1454],{"type":53,"value":1455},"DD_API_KEY set: ",{"type":47,"tag":299,"props":1457,"children":1458},{"style":312},[1459],{"type":53,"value":1460},"$([",{"type":47,"tag":299,"props":1462,"children":1463},{"style":312},[1464],{"type":53,"value":1465}," -n",{"type":47,"tag":299,"props":1467,"children":1468},{"style":312},[1469],{"type":53,"value":1470}," \"${",{"type":47,"tag":299,"props":1472,"children":1473},{"style":306},[1474],{"type":53,"value":1401},{"type":47,"tag":299,"props":1476,"children":1477},{"style":312},[1478],{"type":53,"value":1479},":-}\"",{"type":47,"tag":299,"props":1481,"children":1482},{"style":312},[1483],{"type":53,"value":1484}," ]",{"type":47,"tag":299,"props":1486,"children":1487},{"style":312},[1488],{"type":53,"value":1489}," &&",{"type":47,"tag":299,"props":1491,"children":1492},{"style":1443},[1493],{"type":53,"value":1494}," echo",{"type":47,"tag":299,"props":1496,"children":1497},{"style":318},[1498],{"type":53,"value":1499}," yes ",{"type":47,"tag":299,"props":1501,"children":1502},{"style":312},[1503],{"type":53,"value":1504},"||",{"type":47,"tag":299,"props":1506,"children":1507},{"style":1443},[1508],{"type":53,"value":1494},{"type":47,"tag":299,"props":1510,"children":1511},{"style":318},[1512],{"type":53,"value":1513}," no",{"type":47,"tag":299,"props":1515,"children":1516},{"style":312},[1517],{"type":53,"value":1518},")\"\n",{"type":47,"tag":299,"props":1520,"children":1521},{"class":301,"line":1285},[1522,1526,1530,1535,1539,1543,1547,1551,1555,1559,1563,1567,1571,1575,1579,1583],{"type":47,"tag":299,"props":1523,"children":1524},{"style":1443},[1525],{"type":53,"value":1446},{"type":47,"tag":299,"props":1527,"children":1528},{"style":312},[1529],{"type":53,"value":409},{"type":47,"tag":299,"props":1531,"children":1532},{"style":318},[1533],{"type":53,"value":1534},"DD_APP_KEY set: ",{"type":47,"tag":299,"props":1536,"children":1537},{"style":312},[1538],{"type":53,"value":1460},{"type":47,"tag":299,"props":1540,"children":1541},{"style":312},[1542],{"type":53,"value":1465},{"type":47,"tag":299,"props":1544,"children":1545},{"style":312},[1546],{"type":53,"value":1470},{"type":47,"tag":299,"props":1548,"children":1549},{"style":306},[1550],{"type":53,"value":1408},{"type":47,"tag":299,"props":1552,"children":1553},{"style":312},[1554],{"type":53,"value":1479},{"type":47,"tag":299,"props":1556,"children":1557},{"style":312},[1558],{"type":53,"value":1484},{"type":47,"tag":299,"props":1560,"children":1561},{"style":312},[1562],{"type":53,"value":1489},{"type":47,"tag":299,"props":1564,"children":1565},{"style":1443},[1566],{"type":53,"value":1494},{"type":47,"tag":299,"props":1568,"children":1569},{"style":318},[1570],{"type":53,"value":1499},{"type":47,"tag":299,"props":1572,"children":1573},{"style":312},[1574],{"type":53,"value":1504},{"type":47,"tag":299,"props":1576,"children":1577},{"style":1443},[1578],{"type":53,"value":1494},{"type":47,"tag":299,"props":1580,"children":1581},{"style":318},[1582],{"type":53,"value":1513},{"type":47,"tag":299,"props":1584,"children":1585},{"style":312},[1586],{"type":53,"value":1518},{"type":47,"tag":299,"props":1588,"children":1590},{"class":301,"line":1589},3,[1591,1595,1599,1604,1609,1613,1618,1623,1628,1633,1638,1643,1648,1653,1658,1662],{"type":47,"tag":299,"props":1592,"children":1593},{"style":1443},[1594],{"type":53,"value":1446},{"type":47,"tag":299,"props":1596,"children":1597},{"style":312},[1598],{"type":53,"value":409},{"type":47,"tag":299,"props":1600,"children":1601},{"style":318},[1602],{"type":53,"value":1603},"DD_SITE: ",{"type":47,"tag":299,"props":1605,"children":1606},{"style":312},[1607],{"type":53,"value":1608},"${",{"type":47,"tag":299,"props":1610,"children":1611},{"style":306},[1612],{"type":53,"value":1415},{"type":47,"tag":299,"props":1614,"children":1615},{"style":312},[1616],{"type":53,"value":1617},":-",{"type":47,"tag":299,"props":1619,"children":1620},{"style":306},[1621],{"type":53,"value":1622},"not",{"type":47,"tag":299,"props":1624,"children":1625},{"style":306},[1626],{"type":53,"value":1627}," set",{"type":47,"tag":299,"props":1629,"children":1630},{"style":318},[1631],{"type":53,"value":1632}," (",{"type":47,"tag":299,"props":1634,"children":1635},{"style":306},[1636],{"type":53,"value":1637},"defaulting",{"type":47,"tag":299,"props":1639,"children":1640},{"style":306},[1641],{"type":53,"value":1642}," to",{"type":47,"tag":299,"props":1644,"children":1645},{"style":306},[1646],{"type":53,"value":1647}," datadoghq",{"type":47,"tag":299,"props":1649,"children":1650},{"style":318},[1651],{"type":53,"value":1652},".",{"type":47,"tag":299,"props":1654,"children":1655},{"style":306},[1656],{"type":53,"value":1657},"com",{"type":47,"tag":299,"props":1659,"children":1660},{"style":318},[1661],{"type":53,"value":1127},{"type":47,"tag":299,"props":1663,"children":1664},{"style":312},[1665],{"type":53,"value":1666},"}\"\n",{"type":47,"tag":60,"props":1668,"children":1669},{},[1670],{"type":53,"value":1671},"If any are missing and you need to create\u002Fupdate\u002Fdelete rules:",{"type":47,"tag":1217,"props":1673,"children":1675},{"id":1674},"what-you-need-to-do-in-a-terminal",[1676],{"type":53,"value":1677},"What you need to do in a terminal",{"type":47,"tag":288,"props":1679,"children":1681},{"className":290,"code":1680,"language":292,"meta":293,"style":293},"export DD_API_KEY=\u003Cyour-api-key>\nexport DD_APP_KEY=\u003Cyour-app-key>\nexport DD_SITE=datadoghq.com   # adjust for your site\n",[1682],{"type":47,"tag":72,"props":1683,"children":1684},{"__ignoreMap":293},[1685,1714,1739],{"type":47,"tag":299,"props":1686,"children":1687},{"class":301,"line":302},[1688,1694,1699,1704,1709],{"type":47,"tag":299,"props":1689,"children":1691},{"style":1690},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[1692],{"type":53,"value":1693},"export",{"type":47,"tag":299,"props":1695,"children":1696},{"style":306},[1697],{"type":53,"value":1698}," DD_API_KEY",{"type":47,"tag":299,"props":1700,"children":1701},{"style":312},[1702],{"type":53,"value":1703},"=\u003C",{"type":47,"tag":299,"props":1705,"children":1706},{"style":306},[1707],{"type":53,"value":1708},"your-api-key",{"type":47,"tag":299,"props":1710,"children":1711},{"style":312},[1712],{"type":53,"value":1713},">\n",{"type":47,"tag":299,"props":1715,"children":1716},{"class":301,"line":1285},[1717,1721,1726,1730,1735],{"type":47,"tag":299,"props":1718,"children":1719},{"style":1690},[1720],{"type":53,"value":1693},{"type":47,"tag":299,"props":1722,"children":1723},{"style":306},[1724],{"type":53,"value":1725}," DD_APP_KEY",{"type":47,"tag":299,"props":1727,"children":1728},{"style":312},[1729],{"type":53,"value":1703},{"type":47,"tag":299,"props":1731,"children":1732},{"style":306},[1733],{"type":53,"value":1734},"your-app-key",{"type":47,"tag":299,"props":1736,"children":1737},{"style":312},[1738],{"type":53,"value":1713},{"type":47,"tag":299,"props":1740,"children":1741},{"class":301,"line":1589},[1742,1746,1751,1755,1760],{"type":47,"tag":299,"props":1743,"children":1744},{"style":1690},[1745],{"type":53,"value":1693},{"type":47,"tag":299,"props":1747,"children":1748},{"style":306},[1749],{"type":53,"value":1750}," DD_SITE",{"type":47,"tag":299,"props":1752,"children":1753},{"style":312},[1754],{"type":53,"value":315},{"type":47,"tag":299,"props":1756,"children":1757},{"style":306},[1758],{"type":53,"value":1759},"datadoghq.com   ",{"type":47,"tag":299,"props":1761,"children":1763},{"style":1762},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[1764],{"type":53,"value":1765},"# adjust for your site\n",{"type":47,"tag":56,"props":1767,"children":1768},{},[1769],{"type":47,"tag":60,"props":1770,"children":1771},{},[1772,1774,1780,1782,1788,1790,1796,1797,1803,1804],{"type":53,"value":1773},"Common sites: ",{"type":47,"tag":72,"props":1775,"children":1777},{"className":1776},[],[1778],{"type":53,"value":1779},"datadoghq.com",{"type":53,"value":1781}," (US1), ",{"type":47,"tag":72,"props":1783,"children":1785},{"className":1784},[],[1786],{"type":53,"value":1787},"datadoghq.eu",{"type":53,"value":1789}," (EU1), ",{"type":47,"tag":72,"props":1791,"children":1793},{"className":1792},[],[1794],{"type":53,"value":1795},"us3.datadoghq.com",{"type":53,"value":817},{"type":47,"tag":72,"props":1798,"children":1800},{"className":1799},[],[1801],{"type":53,"value":1802},"us5.datadoghq.com",{"type":53,"value":817},{"type":47,"tag":72,"props":1805,"children":1807},{"className":1806},[],[1808],{"type":53,"value":1809},"ap1.datadoghq.com",{"type":47,"tag":60,"props":1811,"children":1812},{},[1813],{"type":53,"value":1814},"Wait for the user to set credentials, then re-run the check above before continuing.",{"type":47,"tag":89,"props":1816,"children":1817},{},[],{"type":47,"tag":93,"props":1819,"children":1821},{"id":1820},"context-to-resolve-before-acting",[1822],{"type":53,"value":1823},"Context to resolve before acting",{"type":47,"tag":123,"props":1825,"children":1826},{},[1827,1843],{"type":47,"tag":127,"props":1828,"children":1829},{},[1830],{"type":47,"tag":131,"props":1831,"children":1832},{},[1833,1838],{"type":47,"tag":135,"props":1834,"children":1835},{},[1836],{"type":53,"value":1837},"Variable",{"type":47,"tag":135,"props":1839,"children":1840},{},[1841],{"type":53,"value":1842},"How to resolve",{"type":47,"tag":157,"props":1844,"children":1845},{},[1846,1878,1903,1936,1953],{"type":47,"tag":131,"props":1847,"children":1848},{},[1849,1858],{"type":47,"tag":164,"props":1850,"children":1851},{},[1852],{"type":47,"tag":72,"props":1853,"children":1855},{"className":1854},[],[1856],{"type":53,"value":1857},"ENV",{"type":47,"tag":164,"props":1859,"children":1860},{},[1861,1863,1869,1871,1876],{"type":53,"value":1862},"Required before creating the rule (Step 4). Ask the user — do NOT assume ",{"type":47,"tag":72,"props":1864,"children":1866},{"className":1865},[],[1867],{"type":53,"value":1868},"prod",{"type":53,"value":1870},". Read-only verification and impact preview do not need ",{"type":47,"tag":72,"props":1872,"children":1874},{"className":1873},[],[1875],{"type":53,"value":1857},{"type":53,"value":1877}," and should run first.",{"type":47,"tag":131,"props":1879,"children":1880},{},[1881,1890],{"type":47,"tag":164,"props":1882,"children":1883},{},[1884],{"type":47,"tag":72,"props":1885,"children":1887},{"className":1886},[],[1888],{"type":53,"value":1889},"ORIGINAL_SERVICE",{"type":47,"tag":164,"props":1891,"children":1892},{},[1893,1895,1901],{"type":53,"value":1894},"Current service name(s) to remap — discover with ",{"type":47,"tag":72,"props":1896,"children":1898},{"className":1897},[],[1899],{"type":53,"value":1900},"pup apm services list",{"type":53,"value":1902}," or ask the user",{"type":47,"tag":131,"props":1904,"children":1905},{},[1906,1915],{"type":47,"tag":164,"props":1907,"children":1908},{},[1909],{"type":47,"tag":72,"props":1910,"children":1912},{"className":1911},[],[1913],{"type":53,"value":1914},"ENTITY_TYPE",{"type":47,"tag":164,"props":1916,"children":1917},{},[1918,1920,1926,1928,1934],{"type":53,"value":1919},"Instrumented service (",{"type":47,"tag":72,"props":1921,"children":1923},{"className":1922},[],[1924],{"type":53,"value":1925},"rule_type: 0",{"type":53,"value":1927},") or inferred entity (",{"type":47,"tag":72,"props":1929,"children":1931},{"className":1930},[],[1932],{"type":53,"value":1933},"rule_type: 1",{"type":53,"value":1935},")? Ask if unclear — see Domain Knowledge",{"type":47,"tag":131,"props":1937,"children":1938},{},[1939,1948],{"type":47,"tag":164,"props":1940,"children":1941},{},[1942],{"type":47,"tag":72,"props":1943,"children":1945},{"className":1944},[],[1946],{"type":53,"value":1947},"TARGET_NAME",{"type":47,"tag":164,"props":1949,"children":1950},{},[1951],{"type":53,"value":1952},"The desired new service name — ask the user",{"type":47,"tag":131,"props":1954,"children":1955},{},[1956,1965],{"type":47,"tag":164,"props":1957,"children":1958},{},[1959],{"type":47,"tag":72,"props":1960,"children":1962},{"className":1961},[],[1963],{"type":53,"value":1964},"PATTERN",{"type":47,"tag":164,"props":1966,"children":1967},{},[1968],{"type":53,"value":1969},"Which pattern applies — identify from the user's description (see Domain Knowledge above)",{"type":47,"tag":89,"props":1971,"children":1972},{},[],{"type":47,"tag":93,"props":1974,"children":1976},{"id":1975},"step-0-discover-current-service-names",[1977],{"type":53,"value":1978},"Step 0: Discover Current Service Names",{"type":47,"tag":60,"props":1980,"children":1981},{},[1982],{"type":53,"value":1983},"If the user hasn't specified exact names to remap, discover what exists first:",{"type":47,"tag":1217,"props":1985,"children":1987},{"id":1986},"claude-runs-4",[1988],{"type":53,"value":1228},{"type":47,"tag":288,"props":1990,"children":1992},{"className":290,"code":1991,"language":292,"meta":293,"style":293},"pup apm services list --from 1h          # use --env \u003CENV> to target a single environment\npup traces search --query \"service:\u003CPARTIAL_NAME>\" --from 1h --limit 20\n",[1993],{"type":47,"tag":72,"props":1994,"children":1995},{"__ignoreMap":293},[1996,2032],{"type":47,"tag":299,"props":1997,"children":1998},{"class":301,"line":302},[1999,2003,2008,2013,2018,2022,2027],{"type":47,"tag":299,"props":2000,"children":2001},{"style":387},[2002],{"type":53,"value":42},{"type":47,"tag":299,"props":2004,"children":2005},{"style":318},[2006],{"type":53,"value":2007}," apm",{"type":47,"tag":299,"props":2009,"children":2010},{"style":318},[2011],{"type":53,"value":2012}," services",{"type":47,"tag":299,"props":2014,"children":2015},{"style":318},[2016],{"type":53,"value":2017}," list",{"type":47,"tag":299,"props":2019,"children":2020},{"style":318},[2021],{"type":53,"value":424},{"type":47,"tag":299,"props":2023,"children":2024},{"style":318},[2025],{"type":53,"value":2026}," 1h",{"type":47,"tag":299,"props":2028,"children":2029},{"style":1762},[2030],{"type":53,"value":2031},"          # use --env \u003CENV> to target a single environment\n",{"type":47,"tag":299,"props":2033,"children":2034},{"class":301,"line":1285},[2035,2039,2043,2047,2051,2055,2060,2064,2068,2072,2076],{"type":47,"tag":299,"props":2036,"children":2037},{"style":387},[2038],{"type":53,"value":42},{"type":47,"tag":299,"props":2040,"children":2041},{"style":318},[2042],{"type":53,"value":394},{"type":47,"tag":299,"props":2044,"children":2045},{"style":318},[2046],{"type":53,"value":399},{"type":47,"tag":299,"props":2048,"children":2049},{"style":318},[2050],{"type":53,"value":404},{"type":47,"tag":299,"props":2052,"children":2053},{"style":312},[2054],{"type":53,"value":409},{"type":47,"tag":299,"props":2056,"children":2057},{"style":318},[2058],{"type":53,"value":2059},"service:\u003CPARTIAL_NAME>",{"type":47,"tag":299,"props":2061,"children":2062},{"style":312},[2063],{"type":53,"value":419},{"type":47,"tag":299,"props":2065,"children":2066},{"style":318},[2067],{"type":53,"value":424},{"type":47,"tag":299,"props":2069,"children":2070},{"style":318},[2071],{"type":53,"value":2026},{"type":47,"tag":299,"props":2073,"children":2074},{"style":318},[2075],{"type":53,"value":434},{"type":47,"tag":299,"props":2077,"children":2078},{"style":437},[2079],{"type":53,"value":2080}," 20\n",{"type":47,"tag":60,"props":2082,"children":2083},{},[2084],{"type":53,"value":2085},"Use the output to help the user identify exact service names. Ask the user to confirm which names they want remapped before proceeding.",{"type":47,"tag":89,"props":2087,"children":2088},{},[],{"type":47,"tag":93,"props":2090,"children":2092},{"id":2091},"step-1-build-the-rule",[2093],{"type":53,"value":2094},"Step 1: Build the Rule",{"type":47,"tag":60,"props":2096,"children":2097},{},[2098],{"type":53,"value":2099},"Work through each component before writing any JSON.",{"type":47,"tag":1217,"props":2101,"children":2103},{"id":2102},"_1a-check-for-integration-override-names",[2104],{"type":53,"value":2105},"1a. Check for integration override names",{"type":47,"tag":60,"props":2107,"children":2108},{},[2109,2111,2117,2118,2124,2125,2131,2132,2138,2140,2145,2147,2152],{"type":53,"value":2110},"Some service names (e.g. ",{"type":47,"tag":72,"props":2112,"children":2114},{"className":2113},[],[2115],{"type":53,"value":2116},"grpc-client",{"type":53,"value":817},{"type":47,"tag":72,"props":2119,"children":2121},{"className":2120},[],[2122],{"type":53,"value":2123},"net\u002Fhttp",{"type":53,"value":817},{"type":47,"tag":72,"props":2126,"children":2128},{"className":2127},[],[2129],{"type":53,"value":2130},"aws.s3",{"type":53,"value":817},{"type":47,"tag":72,"props":2133,"children":2135},{"className":2134},[],[2136],{"type":53,"value":2137},"redis",{"type":53,"value":2139},") are ",{"type":47,"tag":64,"props":2141,"children":2142},{},[2143],{"type":53,"value":2144},"integration-generated overrides",{"type":53,"value":2146}," — the tracer auto-tags spans with them based on the library being used, not a user-set ",{"type":47,"tag":72,"props":2148,"children":2150},{"className":2149},[],[2151],{"type":53,"value":191},{"type":53,"value":2153}," tag. Remapping these with a service remapping rule is the wrong tool: the override is injected per-span by the integration, so the remapped name will keep re-appearing unless the override itself is removed.",{"type":47,"tag":60,"props":2155,"children":2156},{},[2157,2162,2164,2170,2172,2178],{"type":47,"tag":64,"props":2158,"children":2159},{},[2160],{"type":53,"value":2161},"How to detect:",{"type":53,"value":2163}," if the service name looks like a well-known integration name (single-word library names, ",{"type":47,"tag":72,"props":2165,"children":2167},{"className":2166},[],[2168],{"type":53,"value":2169},"\u003Cprotocol>-\u003Cclient>",{"type":53,"value":2171}," patterns, ",{"type":47,"tag":72,"props":2173,"children":2175},{"className":2174},[],[2176],{"type":53,"value":2177},"\u003Cvendor>.\u003Cresource>",{"type":53,"value":2179}," patterns), ask the user:",{"type":47,"tag":56,"props":2181,"children":2182},{},[2183],{"type":47,"tag":60,"props":2184,"children":2185},{},[2186],{"type":47,"tag":2187,"props":2188,"children":2189},"em",{},[2190,2192,2198,2200,2206,2208,2213],{"type":53,"value":2191},"\"The name ",{"type":47,"tag":72,"props":2193,"children":2195},{"className":2194},[],[2196],{"type":53,"value":2197},"\u003CSERVICE>",{"type":53,"value":2199}," looks like an integration override — a name the tracer sets automatically on spans from the ",{"type":47,"tag":72,"props":2201,"children":2203},{"className":2202},[],[2204],{"type":53,"value":2205},"\u003CLIBRARY>",{"type":53,"value":2207}," integration, not a user-configured service name. Service remapping won't stick here because the override is re-applied on every span. The right fix is ",{"type":47,"tag":64,"props":2209,"children":2210},{},[2211],{"type":53,"value":2212},"integration override removal",{"type":53,"value":2214},", which strips these auto-names so the parent service's name propagates instead. This is currently only configurable in the Datadog UI under APM → Setup → Service Remapping → Integration Override Removal. Do you want to handle it there, or proceed with a remapping rule anyway?\"",{"type":47,"tag":60,"props":2216,"children":2217},{},[2218],{"type":53,"value":2219},"If the user confirms it is an integration override, stop here and direct them to the UI. Do not create a remapping rule.",{"type":47,"tag":1217,"props":2221,"children":2223},{"id":2222},"_1b-entity-type",[2224],{"type":53,"value":2225},"1b. Entity type",{"type":47,"tag":60,"props":2227,"children":2228},{},[2229],{"type":47,"tag":299,"props":2230,"children":2231},{},[2232],{"type":53,"value":2233},"DECISION: entity type — ask the user if unclear",{"type":47,"tag":776,"props":2235,"children":2236},{},[2237,2256],{"type":47,"tag":780,"props":2238,"children":2239},{},[2240,2242,2247,2249,2254],{"type":53,"value":2241},"Does the service appear because a tracer explicitly set its ",{"type":47,"tag":72,"props":2243,"children":2245},{"className":2244},[],[2246],{"type":53,"value":191},{"type":53,"value":2248}," tag? → ",{"type":47,"tag":72,"props":2250,"children":2252},{"className":2251},[],[2253],{"type":53,"value":1925},{"type":53,"value":2255}," (SERVICE)",{"type":47,"tag":780,"props":2257,"children":2258},{},[2259,2261,2266],{"type":53,"value":2260},"Does it appear in the service map from outbound calls (e.g. a database, queue, or external API)? → ",{"type":47,"tag":72,"props":2262,"children":2264},{"className":2263},[],[2265],{"type":53,"value":1933},{"type":53,"value":2267}," (INFERRED_ENTITY)",{"type":47,"tag":60,"props":2269,"children":2270},{},[2271,2273,2278,2280,2285],{"type":53,"value":2272},"If the user wants to remap an inferred entity, verify ",{"type":47,"tag":72,"props":2274,"children":2276},{"className":2275},[],[2277],{"type":53,"value":77},{"type":53,"value":2279}," is set before proceeding — see the prerequisite in Domain Knowledge. If it is not set, stop and ask the user to enable ",{"type":47,"tag":72,"props":2281,"children":2283},{"className":2282},[],[2284],{"type":53,"value":458},{"type":53,"value":2286}," first.",{"type":47,"tag":1217,"props":2288,"children":2290},{"id":2289},"_1c-filter",[2291],{"type":53,"value":2292},"1c. Filter",{"type":47,"tag":60,"props":2294,"children":2295},{},[2296,2298,2303],{"type":53,"value":2297},"Write a single event-grammar query string targeting the service(s) to remap. Use the filter syntax and pattern table in Domain Knowledge to pick the right form. ",{"type":47,"tag":64,"props":2299,"children":2300},{},[2301],{"type":53,"value":2302},"State the filter expression verbatim in the planned-rule preview (Step 3)",{"type":53,"value":2304}," — it is the user's primary way to verify the rule will match the intended entities, and they cannot evaluate the rule without it.",{"type":47,"tag":1217,"props":2306,"children":2308},{"id":2307},"_1d-new-name-value",[2309,2311,2316],{"type":53,"value":2310},"1d. New name (",{"type":47,"tag":72,"props":2312,"children":2314},{"className":2313},[],[2315],{"type":53,"value":656},{"type":53,"value":1127},{"type":47,"tag":60,"props":2318,"children":2319},{},[2320],{"type":53,"value":2321},"Use the new name syntax and regex table in Domain Knowledge to pick the right form. For regex values, apply the constraints listed there.",{"type":47,"tag":1217,"props":2323,"children":2325},{"id":2324},"_1e-rule-name",[2326],{"type":53,"value":2327},"1e. Rule name",{"type":47,"tag":60,"props":2329,"children":2330},{},[2331],{"type":53,"value":2332},"Suggest a descriptive name. Examples:",{"type":47,"tag":776,"props":2334,"children":2335},{},[2336,2345,2354,2363],{"type":47,"tag":780,"props":2337,"children":2338},{},[2339],{"type":47,"tag":72,"props":2340,"children":2342},{"className":2341},[],[2343],{"type":53,"value":2344},"collapse-shopify-inferred-services",{"type":47,"tag":780,"props":2346,"children":2347},{},[2348],{"type":47,"tag":72,"props":2349,"children":2351},{"className":2350},[],[2352],{"type":53,"value":2353},"strip-tropos-suffix",{"type":47,"tag":780,"props":2355,"children":2356},{},[2357],{"type":47,"tag":72,"props":2358,"children":2360},{"className":2359},[],[2361],{"type":53,"value":2362},"rename-old-auth-to-auth-service",{"type":47,"tag":780,"props":2364,"children":2365},{},[2366],{"type":47,"tag":72,"props":2367,"children":2369},{"className":2368},[],[2370],{"type":53,"value":2371},"env-split-my-service-prod",{"type":47,"tag":89,"props":2373,"children":2374},{},[],{"type":47,"tag":93,"props":2376,"children":2378},{"id":2377},"step-2-preview-impact",[2379],{"type":53,"value":2380},"Step 2: Preview Impact",{"type":47,"tag":60,"props":2382,"children":2383},{},[2384],{"type":53,"value":2385},"Before constructing the JSON, check what will be affected:",{"type":47,"tag":1217,"props":2387,"children":2389},{"id":2388},"claude-runs-5",[2390],{"type":53,"value":1228},{"type":47,"tag":288,"props":2392,"children":2394},{"className":290,"code":2393,"language":292,"meta":293,"style":293},"# Confirm telemetry exists for the targeted service (zero spans = wrong query or wrong env)\npup traces search --query \"service:\u003CORIGINAL_SERVICE>\" --from 15m --limit 5\n\n# Check for monitors referencing the old service name\npup monitors list | grep -i \"\u003CORIGINAL_SERVICE>\"\n\n# Check for dashboards referencing the old service name\npup dashboards list | grep -i \"\u003CORIGINAL_SERVICE>\"\n\n# List existing service remapping rules that may conflict\npup apm service-remapping list\n",[2395],{"type":47,"tag":72,"props":2396,"children":2397},{"__ignoreMap":293},[2398,2406,2454,2463,2472,2518,2526,2535,2576,2584,2593],{"type":47,"tag":299,"props":2399,"children":2400},{"class":301,"line":302},[2401],{"type":47,"tag":299,"props":2402,"children":2403},{"style":1762},[2404],{"type":53,"value":2405},"# Confirm telemetry exists for the targeted service (zero spans = wrong query or wrong env)\n",{"type":47,"tag":299,"props":2407,"children":2408},{"class":301,"line":1285},[2409,2413,2417,2421,2425,2429,2434,2438,2442,2446,2450],{"type":47,"tag":299,"props":2410,"children":2411},{"style":387},[2412],{"type":53,"value":42},{"type":47,"tag":299,"props":2414,"children":2415},{"style":318},[2416],{"type":53,"value":394},{"type":47,"tag":299,"props":2418,"children":2419},{"style":318},[2420],{"type":53,"value":399},{"type":47,"tag":299,"props":2422,"children":2423},{"style":318},[2424],{"type":53,"value":404},{"type":47,"tag":299,"props":2426,"children":2427},{"style":312},[2428],{"type":53,"value":409},{"type":47,"tag":299,"props":2430,"children":2431},{"style":318},[2432],{"type":53,"value":2433},"service:\u003CORIGINAL_SERVICE>",{"type":47,"tag":299,"props":2435,"children":2436},{"style":312},[2437],{"type":53,"value":419},{"type":47,"tag":299,"props":2439,"children":2440},{"style":318},[2441],{"type":53,"value":424},{"type":47,"tag":299,"props":2443,"children":2444},{"style":318},[2445],{"type":53,"value":429},{"type":47,"tag":299,"props":2447,"children":2448},{"style":318},[2449],{"type":53,"value":434},{"type":47,"tag":299,"props":2451,"children":2452},{"style":437},[2453],{"type":53,"value":440},{"type":47,"tag":299,"props":2455,"children":2456},{"class":301,"line":1589},[2457],{"type":47,"tag":299,"props":2458,"children":2460},{"emptyLinePlaceholder":2459},true,[2461],{"type":53,"value":2462},"\n",{"type":47,"tag":299,"props":2464,"children":2466},{"class":301,"line":2465},4,[2467],{"type":47,"tag":299,"props":2468,"children":2469},{"style":1762},[2470],{"type":53,"value":2471},"# Check for monitors referencing the old service name\n",{"type":47,"tag":299,"props":2473,"children":2475},{"class":301,"line":2474},5,[2476,2480,2485,2489,2494,2499,2504,2508,2513],{"type":47,"tag":299,"props":2477,"children":2478},{"style":387},[2479],{"type":53,"value":42},{"type":47,"tag":299,"props":2481,"children":2482},{"style":318},[2483],{"type":53,"value":2484}," monitors",{"type":47,"tag":299,"props":2486,"children":2487},{"style":318},[2488],{"type":53,"value":2017},{"type":47,"tag":299,"props":2490,"children":2491},{"style":312},[2492],{"type":53,"value":2493}," |",{"type":47,"tag":299,"props":2495,"children":2496},{"style":387},[2497],{"type":53,"value":2498}," grep",{"type":47,"tag":299,"props":2500,"children":2501},{"style":318},[2502],{"type":53,"value":2503}," -i",{"type":47,"tag":299,"props":2505,"children":2506},{"style":312},[2507],{"type":53,"value":409},{"type":47,"tag":299,"props":2509,"children":2510},{"style":318},[2511],{"type":53,"value":2512},"\u003CORIGINAL_SERVICE>",{"type":47,"tag":299,"props":2514,"children":2515},{"style":312},[2516],{"type":53,"value":2517},"\"\n",{"type":47,"tag":299,"props":2519,"children":2521},{"class":301,"line":2520},6,[2522],{"type":47,"tag":299,"props":2523,"children":2524},{"emptyLinePlaceholder":2459},[2525],{"type":53,"value":2462},{"type":47,"tag":299,"props":2527,"children":2529},{"class":301,"line":2528},7,[2530],{"type":47,"tag":299,"props":2531,"children":2532},{"style":1762},[2533],{"type":53,"value":2534},"# Check for dashboards referencing the old service name\n",{"type":47,"tag":299,"props":2536,"children":2538},{"class":301,"line":2537},8,[2539,2543,2548,2552,2556,2560,2564,2568,2572],{"type":47,"tag":299,"props":2540,"children":2541},{"style":387},[2542],{"type":53,"value":42},{"type":47,"tag":299,"props":2544,"children":2545},{"style":318},[2546],{"type":53,"value":2547}," dashboards",{"type":47,"tag":299,"props":2549,"children":2550},{"style":318},[2551],{"type":53,"value":2017},{"type":47,"tag":299,"props":2553,"children":2554},{"style":312},[2555],{"type":53,"value":2493},{"type":47,"tag":299,"props":2557,"children":2558},{"style":387},[2559],{"type":53,"value":2498},{"type":47,"tag":299,"props":2561,"children":2562},{"style":318},[2563],{"type":53,"value":2503},{"type":47,"tag":299,"props":2565,"children":2566},{"style":312},[2567],{"type":53,"value":409},{"type":47,"tag":299,"props":2569,"children":2570},{"style":318},[2571],{"type":53,"value":2512},{"type":47,"tag":299,"props":2573,"children":2574},{"style":312},[2575],{"type":53,"value":2517},{"type":47,"tag":299,"props":2577,"children":2579},{"class":301,"line":2578},9,[2580],{"type":47,"tag":299,"props":2581,"children":2582},{"emptyLinePlaceholder":2459},[2583],{"type":53,"value":2462},{"type":47,"tag":299,"props":2585,"children":2587},{"class":301,"line":2586},10,[2588],{"type":47,"tag":299,"props":2589,"children":2590},{"style":1762},[2591],{"type":53,"value":2592},"# List existing service remapping rules that may conflict\n",{"type":47,"tag":299,"props":2594,"children":2596},{"class":301,"line":2595},11,[2597,2601,2605,2610],{"type":47,"tag":299,"props":2598,"children":2599},{"style":387},[2600],{"type":53,"value":42},{"type":47,"tag":299,"props":2602,"children":2603},{"style":318},[2604],{"type":53,"value":2007},{"type":47,"tag":299,"props":2606,"children":2607},{"style":318},[2608],{"type":53,"value":2609}," service-remapping",{"type":47,"tag":299,"props":2611,"children":2612},{"style":318},[2613],{"type":53,"value":2614}," list\n",{"type":47,"tag":60,"props":2616,"children":2617},{},[2618],{"type":53,"value":2619},"Report to the user:",{"type":47,"tag":123,"props":2621,"children":2622},{},[2623,2639],{"type":47,"tag":127,"props":2624,"children":2625},{},[2626],{"type":47,"tag":131,"props":2627,"children":2628},{},[2629,2634],{"type":47,"tag":135,"props":2630,"children":2631},{},[2632],{"type":53,"value":2633},"Item",{"type":47,"tag":135,"props":2635,"children":2636},{},[2637],{"type":53,"value":2638},"What to surface",{"type":47,"tag":157,"props":2640,"children":2641},{},[2642,2658,2674,2690],{"type":47,"tag":131,"props":2643,"children":2644},{},[2645,2653],{"type":47,"tag":164,"props":2646,"children":2647},{},[2648],{"type":47,"tag":64,"props":2649,"children":2650},{},[2651],{"type":53,"value":2652},"Telemetry volume",{"type":47,"tag":164,"props":2654,"children":2655},{},[2656],{"type":53,"value":2657},"Non-zero spans confirm the filter will match real data. Zero = likely wrong service name or env.",{"type":47,"tag":131,"props":2659,"children":2660},{},[2661,2669],{"type":47,"tag":164,"props":2662,"children":2663},{},[2664],{"type":47,"tag":64,"props":2665,"children":2666},{},[2667],{"type":53,"value":2668},"Monitors",{"type":47,"tag":164,"props":2670,"children":2671},{},[2672],{"type":53,"value":2673},"Any monitor referencing the old service name will silently break after remapping. List them and offer to update.",{"type":47,"tag":131,"props":2675,"children":2676},{},[2677,2685],{"type":47,"tag":164,"props":2678,"children":2679},{},[2680],{"type":47,"tag":64,"props":2681,"children":2682},{},[2683],{"type":53,"value":2684},"Dashboards",{"type":47,"tag":164,"props":2686,"children":2687},{},[2688],{"type":53,"value":2689},"Any dashboard with the old service name in its title will have stale references after remapping. List them and offer to update.",{"type":47,"tag":131,"props":2691,"children":2692},{},[2693,2701],{"type":47,"tag":164,"props":2694,"children":2695},{},[2696],{"type":47,"tag":64,"props":2697,"children":2698},{},[2699],{"type":53,"value":2700},"Conflicting rules",{"type":47,"tag":164,"props":2702,"children":2703},{},[2704],{"type":53,"value":2705},"Existing rules targeting the same service may be overridden. Show conflicts and ask the user to confirm.",{"type":47,"tag":60,"props":2707,"children":2708},{},[2709],{"type":47,"tag":64,"props":2710,"children":2711},{},[2712],{"type":53,"value":2713},"Known gaps — Claude cannot verify these automatically:",{"type":47,"tag":60,"props":2715,"children":2716},{},[2717,2719,2724],{"type":53,"value":2718},"Remapping a service name can also break the following. Claude has no ",{"type":47,"tag":72,"props":2720,"children":2722},{"className":2721},[],[2723],{"type":53,"value":42},{"type":53,"value":2725}," commands to check them today, so surface this as a manual checklist for the user before they confirm:",{"type":47,"tag":56,"props":2727,"children":2728},{},[2729,2744],{"type":47,"tag":60,"props":2730,"children":2731},{},[2732],{"type":47,"tag":2187,"props":2733,"children":2734},{},[2735,2737,2742],{"type":53,"value":2736},"\"Before I create this rule, please verify ",{"type":47,"tag":72,"props":2738,"children":2740},{"className":2739},[],[2741],{"type":53,"value":2512},{"type":53,"value":2743}," is not referenced in any of the following — they won't update automatically after remapping:",{"type":47,"tag":776,"props":2745,"children":2746},{},[2747,2755,2763,2771,2779],{"type":47,"tag":780,"props":2748,"children":2749},{},[2750],{"type":47,"tag":2187,"props":2751,"children":2752},{},[2753],{"type":53,"value":2754},"Spans-to-metrics rules (APM → Setup → Generate Metrics)",{"type":47,"tag":780,"props":2756,"children":2757},{},[2758],{"type":47,"tag":2187,"props":2759,"children":2760},{},[2761],{"type":53,"value":2762},"Trace-to-metrics rules",{"type":47,"tag":780,"props":2764,"children":2765},{},[2766],{"type":47,"tag":2187,"props":2767,"children":2768},{},[2769],{"type":53,"value":2770},"Span retention filters (APM → Setup → Retention Filters)",{"type":47,"tag":780,"props":2772,"children":2773},{},[2774],{"type":47,"tag":2187,"props":2775,"children":2776},{},[2777],{"type":53,"value":2778},"Logs-to-metrics rules (Logs → Generate Metrics)",{"type":47,"tag":780,"props":2780,"children":2781},{},[2782,2787],{"type":47,"tag":2187,"props":2783,"children":2784},{},[2785],{"type":53,"value":2786},"Any pipeline, alert, or SLO that acts on the service name",{"type":53,"value":419},{"type":47,"tag":60,"props":2789,"children":2790},{},[2791],{"type":53,"value":2792},"If monitors reference the old service name, ask:",{"type":47,"tag":56,"props":2794,"children":2795},{},[2796],{"type":47,"tag":60,"props":2797,"children":2798},{},[2799],{"type":47,"tag":2187,"props":2800,"children":2801},{},[2802,2804,2810,2812,2817,2819,2825],{"type":53,"value":2803},"\"I found ",{"type":47,"tag":72,"props":2805,"children":2807},{"className":2806},[],[2808],{"type":53,"value":2809},"\u003CN>",{"type":53,"value":2811}," monitor(s) referencing ",{"type":47,"tag":72,"props":2813,"children":2815},{"className":2814},[],[2816],{"type":53,"value":2512},{"type":53,"value":2818},". After remapping, they'll need to be updated to use ",{"type":47,"tag":72,"props":2820,"children":2822},{"className":2821},[],[2823],{"type":53,"value":2824},"\u003CTARGET_NAME>",{"type":53,"value":2826},". Want me to update them now?\"",{"type":47,"tag":89,"props":2828,"children":2829},{},[],{"type":47,"tag":93,"props":2831,"children":2833},{"id":2832},"step-3-confirm-the-rule",[2834],{"type":53,"value":2835},"Step 3: Confirm the Rule",{"type":47,"tag":60,"props":2837,"children":2838},{},[2839,2841,2846],{"type":53,"value":2840},"Show the user the planned rule and confirm before creating. ",{"type":47,"tag":64,"props":2842,"children":2843},{},[2844],{"type":53,"value":2845},"Batch any unresolved context variables into this same prompt",{"type":53,"value":2847}," — do not ask for them in a separate earlier turn. One round-trip, not two.",{"type":47,"tag":60,"props":2849,"children":2850},{},[2851,2853,2859],{"type":53,"value":2852},"If the filter doesn't already scope to an environment, ask whether to add one — env scoping is done by appending ",{"type":47,"tag":72,"props":2854,"children":2856},{"className":2855},[],[2857],{"type":53,"value":2858},"AND env:\u003CENV>",{"type":53,"value":2860}," to the filter expression, not via a separate API parameter.",{"type":47,"tag":56,"props":2862,"children":2863},{},[2864],{"type":47,"tag":60,"props":2865,"children":2866},{},[2867],{"type":47,"tag":2187,"props":2868,"children":2869},{},[2870,2872,2878,2880,2886,2888,2893,2894,2899,2901,2907,2909,2914],{"type":53,"value":2871},"\"I'm planning rule ",{"type":47,"tag":72,"props":2873,"children":2875},{"className":2874},[],[2876],{"type":53,"value":2877},"\u003CRULE_NAME>",{"type":53,"value":2879}," with filter ",{"type":47,"tag":72,"props":2881,"children":2883},{"className":2882},[],[2884],{"type":53,"value":2885},"\u003CFILTER>",{"type":53,"value":2887}," mapping ",{"type":47,"tag":72,"props":2889,"children":2891},{"className":2890},[],[2892],{"type":53,"value":2512},{"type":53,"value":1169},{"type":47,"tag":72,"props":2895,"children":2897},{"className":2896},[],[2898],{"type":53,"value":2824},{"type":53,"value":2900}," (rule_type: ",{"type":47,"tag":72,"props":2902,"children":2904},{"className":2903},[],[2905],{"type":53,"value":2906},"\u003CTYPE>",{"type":53,"value":2908},"). Should this be scoped to a specific environment? If so, I'll add ",{"type":47,"tag":72,"props":2910,"children":2912},{"className":2911},[],[2913],{"type":53,"value":2858},{"type":53,"value":2915}," to the filter. Is this OK to proceed?\"",{"type":47,"tag":60,"props":2917,"children":2918},{},[2919],{"type":53,"value":2920},"Wait for confirmation before continuing.",{"type":47,"tag":89,"props":2922,"children":2923},{},[],{"type":47,"tag":93,"props":2925,"children":2927},{"id":2926},"step-4-create-the-rule",[2928],{"type":53,"value":2929},"Step 4: Create the Rule",{"type":47,"tag":1217,"props":2931,"children":2933},{"id":2932},"claude-runs-6",[2934],{"type":53,"value":1228},{"type":47,"tag":288,"props":2936,"children":2938},{"className":290,"code":2937,"language":292,"meta":293,"style":293},"pup apm service-remapping create \\\n  --name \"\u003CRULE_NAME>\" \\\n  --filter \"\u003CFILTER>\" \\\n  --rule-type \u003CTYPE> \\\n  --value \"\u003CTARGET_NAME>\"\n",[2939],{"type":47,"tag":72,"props":2940,"children":2941},{"__ignoreMap":293},[2942,2967,2991,3015,3047],{"type":47,"tag":299,"props":2943,"children":2944},{"class":301,"line":302},[2945,2949,2953,2957,2962],{"type":47,"tag":299,"props":2946,"children":2947},{"style":387},[2948],{"type":53,"value":42},{"type":47,"tag":299,"props":2950,"children":2951},{"style":318},[2952],{"type":53,"value":2007},{"type":47,"tag":299,"props":2954,"children":2955},{"style":318},[2956],{"type":53,"value":2609},{"type":47,"tag":299,"props":2958,"children":2959},{"style":318},[2960],{"type":53,"value":2961}," create",{"type":47,"tag":299,"props":2963,"children":2964},{"style":306},[2965],{"type":53,"value":2966}," \\\n",{"type":47,"tag":299,"props":2968,"children":2969},{"class":301,"line":1285},[2970,2975,2979,2983,2987],{"type":47,"tag":299,"props":2971,"children":2972},{"style":318},[2973],{"type":53,"value":2974},"  --name",{"type":47,"tag":299,"props":2976,"children":2977},{"style":312},[2978],{"type":53,"value":409},{"type":47,"tag":299,"props":2980,"children":2981},{"style":318},[2982],{"type":53,"value":2877},{"type":47,"tag":299,"props":2984,"children":2985},{"style":312},[2986],{"type":53,"value":419},{"type":47,"tag":299,"props":2988,"children":2989},{"style":306},[2990],{"type":53,"value":2966},{"type":47,"tag":299,"props":2992,"children":2993},{"class":301,"line":1589},[2994,2999,3003,3007,3011],{"type":47,"tag":299,"props":2995,"children":2996},{"style":318},[2997],{"type":53,"value":2998},"  --filter",{"type":47,"tag":299,"props":3000,"children":3001},{"style":312},[3002],{"type":53,"value":409},{"type":47,"tag":299,"props":3004,"children":3005},{"style":318},[3006],{"type":53,"value":2885},{"type":47,"tag":299,"props":3008,"children":3009},{"style":312},[3010],{"type":53,"value":419},{"type":47,"tag":299,"props":3012,"children":3013},{"style":306},[3014],{"type":53,"value":2966},{"type":47,"tag":299,"props":3016,"children":3017},{"class":301,"line":2465},[3018,3023,3028,3033,3038,3043],{"type":47,"tag":299,"props":3019,"children":3020},{"style":318},[3021],{"type":53,"value":3022},"  --rule-type",{"type":47,"tag":299,"props":3024,"children":3025},{"style":312},[3026],{"type":53,"value":3027}," \u003C",{"type":47,"tag":299,"props":3029,"children":3030},{"style":318},[3031],{"type":53,"value":3032},"TYP",{"type":47,"tag":299,"props":3034,"children":3035},{"style":306},[3036],{"type":53,"value":3037},"E",{"type":47,"tag":299,"props":3039,"children":3040},{"style":312},[3041],{"type":53,"value":3042},">",{"type":47,"tag":299,"props":3044,"children":3045},{"style":306},[3046],{"type":53,"value":2966},{"type":47,"tag":299,"props":3048,"children":3049},{"class":301,"line":2474},[3050,3055,3059,3063],{"type":47,"tag":299,"props":3051,"children":3052},{"style":318},[3053],{"type":53,"value":3054},"  --value",{"type":47,"tag":299,"props":3056,"children":3057},{"style":312},[3058],{"type":53,"value":409},{"type":47,"tag":299,"props":3060,"children":3061},{"style":318},[3062],{"type":53,"value":2824},{"type":47,"tag":299,"props":3064,"children":3065},{"style":312},[3066],{"type":53,"value":2517},{"type":47,"tag":60,"props":3068,"children":3069},{},[3070,3072,3078,3080,3085,3086,3092],{"type":53,"value":3071},"If the response contains an ",{"type":47,"tag":72,"props":3073,"children":3075},{"className":3074},[],[3076],{"type":53,"value":3077},"id",{"type":53,"value":3079}," field — creation succeeded. Record the ",{"type":47,"tag":72,"props":3081,"children":3083},{"className":3082},[],[3084],{"type":53,"value":3077},{"type":53,"value":1387},{"type":47,"tag":72,"props":3087,"children":3089},{"className":3088},[],[3090],{"type":53,"value":3091},"version",{"type":53,"value":3093}," values from the response.",{"type":47,"tag":60,"props":3095,"children":3096},{},[3097,3099,3105],{"type":53,"value":3098},"ERROR: ",{"type":47,"tag":72,"props":3100,"children":3102},{"className":3101},[],[3103],{"type":53,"value":3104},"400 Bad Request",{"type":53,"value":3106}," with \"Filter expression has invalid syntax\" — the filter query is malformed. Check glob syntax and boolean operators.",{"type":47,"tag":60,"props":3108,"children":3109},{},[3110,3111,3116,3118,3123,3125,3130,3131,3136],{"type":53,"value":3098},{"type":47,"tag":72,"props":3112,"children":3114},{"className":3113},[],[3115],{"type":53,"value":3104},{"type":53,"value":3117}," with \"Template value in target name is invalid\" — the ",{"type":47,"tag":72,"props":3119,"children":3121},{"className":3120},[],[3122],{"type":53,"value":656},{"type":53,"value":3124}," regex is invalid. Check: max 1 capture group, non-greedy quantifiers inside groups (",{"type":47,"tag":72,"props":3126,"children":3128},{"className":3127},[],[3129],{"type":53,"value":807},{"type":53,"value":809},{"type":47,"tag":72,"props":3132,"children":3134},{"className":3133},[],[3135],{"type":53,"value":815},{"type":53,"value":3137},").",{"type":47,"tag":60,"props":3139,"children":3140},{},[3141,3142,3148,3150,3155,3156,3161],{"type":53,"value":3098},{"type":47,"tag":72,"props":3143,"children":3145},{"className":3144},[],[3146],{"type":53,"value":3147},"401 Unauthorized",{"type":53,"value":3149}," — credentials are invalid or expired. Re-check ",{"type":47,"tag":72,"props":3151,"children":3153},{"className":3152},[],[3154],{"type":53,"value":1401},{"type":53,"value":1387},{"type":47,"tag":72,"props":3157,"children":3159},{"className":3158},[],[3160],{"type":53,"value":1408},{"type":53,"value":1652},{"type":47,"tag":60,"props":3163,"children":3164},{},[3165,3166,3172,3174,3179],{"type":53,"value":3098},{"type":47,"tag":72,"props":3167,"children":3169},{"className":3168},[],[3170],{"type":53,"value":3171},"403 Forbidden",{"type":53,"value":3173}," — the API key lacks ",{"type":47,"tag":72,"props":3175,"children":3177},{"className":3176},[],[3178],{"type":53,"value":1423},{"type":53,"value":3180}," permission.",{"type":47,"tag":89,"props":3182,"children":3183},{},[],{"type":47,"tag":93,"props":3185,"children":3187},{"id":3186},"step-5-verify",[3188],{"type":53,"value":3189},"Step 5: Verify",{"type":47,"tag":60,"props":3191,"children":3192},{},[3193],{"type":53,"value":3194},"Allow 2–5 minutes for the rule to propagate, then confirm it is active.",{"type":47,"tag":1217,"props":3196,"children":3198},{"id":3197},"for-service-rules-rule_type-0",[3199],{"type":53,"value":3200},"For SERVICE rules (rule_type 0)",{"type":47,"tag":1217,"props":3202,"children":3204},{"id":3203},"claude-runs-7",[3205],{"type":53,"value":1228},{"type":47,"tag":288,"props":3207,"children":3209},{"className":290,"code":3208,"language":292,"meta":293,"style":293},"# Confirm new service name appears in APM\npup apm services list --env \u003CENV> --from 5m\n\n# Confirm traces are arriving under the new name\npup traces search --query \"service:\u003CTARGET_NAME>\" --from 5m --limit 5\n",[3210],{"type":47,"tag":72,"props":3211,"children":3212},{"__ignoreMap":293},[3213,3221,3272,3279,3287],{"type":47,"tag":299,"props":3214,"children":3215},{"class":301,"line":302},[3216],{"type":47,"tag":299,"props":3217,"children":3218},{"style":1762},[3219],{"type":53,"value":3220},"# Confirm new service name appears in APM\n",{"type":47,"tag":299,"props":3222,"children":3223},{"class":301,"line":1285},[3224,3228,3232,3236,3240,3245,3249,3254,3259,3263,3267],{"type":47,"tag":299,"props":3225,"children":3226},{"style":387},[3227],{"type":53,"value":42},{"type":47,"tag":299,"props":3229,"children":3230},{"style":318},[3231],{"type":53,"value":2007},{"type":47,"tag":299,"props":3233,"children":3234},{"style":318},[3235],{"type":53,"value":2012},{"type":47,"tag":299,"props":3237,"children":3238},{"style":318},[3239],{"type":53,"value":2017},{"type":47,"tag":299,"props":3241,"children":3242},{"style":318},[3243],{"type":53,"value":3244}," --env",{"type":47,"tag":299,"props":3246,"children":3247},{"style":312},[3248],{"type":53,"value":3027},{"type":47,"tag":299,"props":3250,"children":3251},{"style":318},[3252],{"type":53,"value":3253},"EN",{"type":47,"tag":299,"props":3255,"children":3256},{"style":306},[3257],{"type":53,"value":3258},"V",{"type":47,"tag":299,"props":3260,"children":3261},{"style":312},[3262],{"type":53,"value":3042},{"type":47,"tag":299,"props":3264,"children":3265},{"style":318},[3266],{"type":53,"value":424},{"type":47,"tag":299,"props":3268,"children":3269},{"style":318},[3270],{"type":53,"value":3271}," 5m\n",{"type":47,"tag":299,"props":3273,"children":3274},{"class":301,"line":1589},[3275],{"type":47,"tag":299,"props":3276,"children":3277},{"emptyLinePlaceholder":2459},[3278],{"type":53,"value":2462},{"type":47,"tag":299,"props":3280,"children":3281},{"class":301,"line":2465},[3282],{"type":47,"tag":299,"props":3283,"children":3284},{"style":1762},[3285],{"type":53,"value":3286},"# Confirm traces are arriving under the new name\n",{"type":47,"tag":299,"props":3288,"children":3289},{"class":301,"line":2474},[3290,3294,3298,3302,3306,3310,3315,3319,3323,3328,3332],{"type":47,"tag":299,"props":3291,"children":3292},{"style":387},[3293],{"type":53,"value":42},{"type":47,"tag":299,"props":3295,"children":3296},{"style":318},[3297],{"type":53,"value":394},{"type":47,"tag":299,"props":3299,"children":3300},{"style":318},[3301],{"type":53,"value":399},{"type":47,"tag":299,"props":3303,"children":3304},{"style":318},[3305],{"type":53,"value":404},{"type":47,"tag":299,"props":3307,"children":3308},{"style":312},[3309],{"type":53,"value":409},{"type":47,"tag":299,"props":3311,"children":3312},{"style":318},[3313],{"type":53,"value":3314},"service:\u003CTARGET_NAME>",{"type":47,"tag":299,"props":3316,"children":3317},{"style":312},[3318],{"type":53,"value":419},{"type":47,"tag":299,"props":3320,"children":3321},{"style":318},[3322],{"type":53,"value":424},{"type":47,"tag":299,"props":3324,"children":3325},{"style":318},[3326],{"type":53,"value":3327}," 5m",{"type":47,"tag":299,"props":3329,"children":3330},{"style":318},[3331],{"type":53,"value":434},{"type":47,"tag":299,"props":3333,"children":3334},{"style":437},[3335],{"type":53,"value":440},{"type":47,"tag":60,"props":3337,"children":3338},{},[3339,3341,3346],{"type":53,"value":3340},"If ",{"type":47,"tag":72,"props":3342,"children":3344},{"className":3343},[],[3345],{"type":53,"value":2824},{"type":53,"value":3347}," appears in either — rule is active.",{"type":47,"tag":1217,"props":3349,"children":3351},{"id":3350},"for-inferred_entity-rules-rule_type-1",[3352],{"type":53,"value":3353},"For INFERRED_ENTITY rules (rule_type 1)",{"type":47,"tag":60,"props":3355,"children":3356},{},[3357,3359,3364,3366,3371],{"type":53,"value":3358},"Inferred entities don't produce their own spans, so they won't appear in ",{"type":47,"tag":72,"props":3360,"children":3362},{"className":3361},[],[3363],{"type":53,"value":1900},{"type":53,"value":3365}," or ",{"type":47,"tag":72,"props":3367,"children":3369},{"className":3368},[],[3370],{"type":53,"value":346},{"type":53,"value":3372},". Verify in two steps:",{"type":47,"tag":60,"props":3374,"children":3375},{},[3376],{"type":47,"tag":64,"props":3377,"children":3378},{},[3379],{"type":53,"value":3380},"Step 5a — confirm the rule is stored correctly:",{"type":47,"tag":1217,"props":3382,"children":3384},{"id":3383},"claude-runs-8",[3385],{"type":53,"value":1228},{"type":47,"tag":288,"props":3387,"children":3389},{"className":290,"code":3388,"language":292,"meta":293,"style":293},"pup apm service-remapping get \u003CRULE_ID>\n",[3390],{"type":47,"tag":72,"props":3391,"children":3392},{"__ignoreMap":293},[3393],{"type":47,"tag":299,"props":3394,"children":3395},{"class":301,"line":302},[3396,3400,3404,3408,3413,3417,3422,3427],{"type":47,"tag":299,"props":3397,"children":3398},{"style":387},[3399],{"type":53,"value":42},{"type":47,"tag":299,"props":3401,"children":3402},{"style":318},[3403],{"type":53,"value":2007},{"type":47,"tag":299,"props":3405,"children":3406},{"style":318},[3407],{"type":53,"value":2609},{"type":47,"tag":299,"props":3409,"children":3410},{"style":318},[3411],{"type":53,"value":3412}," get",{"type":47,"tag":299,"props":3414,"children":3415},{"style":312},[3416],{"type":53,"value":3027},{"type":47,"tag":299,"props":3418,"children":3419},{"style":318},[3420],{"type":53,"value":3421},"RULE_I",{"type":47,"tag":299,"props":3423,"children":3424},{"style":306},[3425],{"type":53,"value":3426},"D",{"type":47,"tag":299,"props":3428,"children":3429},{"style":312},[3430],{"type":53,"value":1713},{"type":47,"tag":60,"props":3432,"children":3433},{},[3434],{"type":53,"value":3435},"Confirm the filter and value match what you intended.",{"type":47,"tag":60,"props":3437,"children":3438},{},[3439],{"type":47,"tag":64,"props":3440,"children":3441},{},[3442],{"type":53,"value":3443},"Step 5b — confirm the entity name changed in the service map:",{"type":47,"tag":60,"props":3445,"children":3446},{},[3447,3449,3454,3456,3461],{"type":53,"value":3448},"Ask the user to check the APM Service Map in the Datadog UI and look for ",{"type":47,"tag":72,"props":3450,"children":3452},{"className":3451},[],[3453],{"type":53,"value":2824},{"type":53,"value":3455}," where ",{"type":47,"tag":72,"props":3457,"children":3459},{"className":3458},[],[3460],{"type":53,"value":2512},{"type":53,"value":3462}," used to appear. The service map is the authoritative view for inferred entity names.",{"type":47,"tag":60,"props":3464,"children":3465},{},[3466,3468,3473],{"type":53,"value":3467},"Alternatively, confirm new ",{"type":47,"tag":72,"props":3469,"children":3471},{"className":3470},[],[3472],{"type":53,"value":77},{"type":53,"value":3474}," values are arriving on spans from the instrumented service:",{"type":47,"tag":1217,"props":3476,"children":3478},{"id":3477},"claude-runs-9",[3479],{"type":53,"value":1228},{"type":47,"tag":288,"props":3481,"children":3483},{"className":290,"code":3482,"language":292,"meta":293,"style":293},"pup traces search --query \"service:\u003CINSTRUMENTED_SERVICE> @peer.service:\u003CTARGET_NAME>\" --from 5m --limit 5\n",[3484],{"type":47,"tag":72,"props":3485,"children":3486},{"__ignoreMap":293},[3487],{"type":47,"tag":299,"props":3488,"children":3489},{"class":301,"line":302},[3490,3494,3498,3502,3506,3510,3515,3519,3523,3527,3531],{"type":47,"tag":299,"props":3491,"children":3492},{"style":387},[3493],{"type":53,"value":42},{"type":47,"tag":299,"props":3495,"children":3496},{"style":318},[3497],{"type":53,"value":394},{"type":47,"tag":299,"props":3499,"children":3500},{"style":318},[3501],{"type":53,"value":399},{"type":47,"tag":299,"props":3503,"children":3504},{"style":318},[3505],{"type":53,"value":404},{"type":47,"tag":299,"props":3507,"children":3508},{"style":312},[3509],{"type":53,"value":409},{"type":47,"tag":299,"props":3511,"children":3512},{"style":318},[3513],{"type":53,"value":3514},"service:\u003CINSTRUMENTED_SERVICE> @peer.service:\u003CTARGET_NAME>",{"type":47,"tag":299,"props":3516,"children":3517},{"style":312},[3518],{"type":53,"value":419},{"type":47,"tag":299,"props":3520,"children":3521},{"style":318},[3522],{"type":53,"value":424},{"type":47,"tag":299,"props":3524,"children":3525},{"style":318},[3526],{"type":53,"value":3327},{"type":47,"tag":299,"props":3528,"children":3529},{"style":318},[3530],{"type":53,"value":434},{"type":47,"tag":299,"props":3532,"children":3533},{"style":437},[3534],{"type":53,"value":440},{"type":47,"tag":60,"props":3536,"children":3537},{},[3538,3540,3546],{"type":53,"value":3539},"If spans appear with ",{"type":47,"tag":72,"props":3541,"children":3543},{"className":3542},[],[3544],{"type":53,"value":3545},"peer.service:\u003CTARGET_NAME>",{"type":53,"value":3547}," — rule is active.",{"type":47,"tag":60,"props":3549,"children":3550},{},[3551],{"type":53,"value":3552},"ERROR: New name not appearing after 5 minutes:",{"type":47,"tag":776,"props":3554,"children":3555},{},[3556,3574,3579],{"type":47,"tag":780,"props":3557,"children":3558},{},[3559,3561,3566,3568],{"type":53,"value":3560},"Confirm old service is still sending traces with the original ",{"type":47,"tag":72,"props":3562,"children":3564},{"className":3563},[],[3565],{"type":53,"value":77},{"type":53,"value":3567},": ",{"type":47,"tag":72,"props":3569,"children":3571},{"className":3570},[],[3572],{"type":53,"value":3573},"pup traces search --query \"@peer.service:\u003CORIGINAL_SERVICE>\" --from 5m",{"type":47,"tag":780,"props":3575,"children":3576},{},[3577],{"type":53,"value":3578},"If old name still appears, propagation may still be in progress — wait 2 more minutes and retry",{"type":47,"tag":780,"props":3580,"children":3581},{},[3582,3584,3589,3591,3596],{"type":53,"value":3583},"If neither name appears, confirm ",{"type":47,"tag":72,"props":3585,"children":3587},{"className":3586},[],[3588],{"type":53,"value":458},{"type":53,"value":3590}," is set on the instrumented service — without it ",{"type":47,"tag":72,"props":3592,"children":3594},{"className":3593},[],[3595],{"type":53,"value":77},{"type":53,"value":3597}," is never set and the rule will never fire",{"type":47,"tag":89,"props":3599,"children":3600},{},[],{"type":47,"tag":93,"props":3602,"children":3604},{"id":3603},"managing-existing-rules",[3605],{"type":53,"value":3606},"Managing Existing Rules",{"type":47,"tag":1217,"props":3608,"children":3610},{"id":3609},"list-all-rules",[3611],{"type":53,"value":3612},"List all rules",{"type":47,"tag":1217,"props":3614,"children":3616},{"id":3615},"claude-runs-10",[3617],{"type":53,"value":1228},{"type":47,"tag":288,"props":3619,"children":3621},{"className":290,"code":3620,"language":292,"meta":293,"style":293},"pup apm service-remapping list\n",[3622],{"type":47,"tag":72,"props":3623,"children":3624},{"__ignoreMap":293},[3625],{"type":47,"tag":299,"props":3626,"children":3627},{"class":301,"line":302},[3628,3632,3636,3640],{"type":47,"tag":299,"props":3629,"children":3630},{"style":387},[3631],{"type":53,"value":42},{"type":47,"tag":299,"props":3633,"children":3634},{"style":318},[3635],{"type":53,"value":2007},{"type":47,"tag":299,"props":3637,"children":3638},{"style":318},[3639],{"type":53,"value":2609},{"type":47,"tag":299,"props":3641,"children":3642},{"style":318},[3643],{"type":53,"value":2614},{"type":47,"tag":1217,"props":3645,"children":3647},{"id":3646},"get-a-single-rule",[3648],{"type":53,"value":3649},"Get a single rule",{"type":47,"tag":1217,"props":3651,"children":3653},{"id":3652},"claude-runs-11",[3654],{"type":53,"value":1228},{"type":47,"tag":288,"props":3656,"children":3657},{"className":290,"code":3388,"language":292,"meta":293,"style":293},[3658],{"type":47,"tag":72,"props":3659,"children":3660},{"__ignoreMap":293},[3661],{"type":47,"tag":299,"props":3662,"children":3663},{"class":301,"line":302},[3664,3668,3672,3676,3680,3684,3688,3692],{"type":47,"tag":299,"props":3665,"children":3666},{"style":387},[3667],{"type":53,"value":42},{"type":47,"tag":299,"props":3669,"children":3670},{"style":318},[3671],{"type":53,"value":2007},{"type":47,"tag":299,"props":3673,"children":3674},{"style":318},[3675],{"type":53,"value":2609},{"type":47,"tag":299,"props":3677,"children":3678},{"style":318},[3679],{"type":53,"value":3412},{"type":47,"tag":299,"props":3681,"children":3682},{"style":312},[3683],{"type":53,"value":3027},{"type":47,"tag":299,"props":3685,"children":3686},{"style":318},[3687],{"type":53,"value":3421},{"type":47,"tag":299,"props":3689,"children":3690},{"style":306},[3691],{"type":53,"value":3426},{"type":47,"tag":299,"props":3693,"children":3694},{"style":312},[3695],{"type":53,"value":1713},{"type":47,"tag":1217,"props":3697,"children":3699},{"id":3698},"update-a-rule",[3700],{"type":53,"value":3701},"Update a rule",{"type":47,"tag":60,"props":3703,"children":3704},{},[3705,3707,3712],{"type":53,"value":3706},"Update requires the current ",{"type":47,"tag":72,"props":3708,"children":3710},{"className":3709},[],[3711],{"type":53,"value":3091},{"type":53,"value":3713}," from list\u002Fget output. Show the proposed changes to the user and confirm before running:",{"type":47,"tag":1217,"props":3715,"children":3717},{"id":3716},"claude-runs-12",[3718],{"type":53,"value":1228},{"type":47,"tag":288,"props":3720,"children":3722},{"className":290,"code":3721,"language":292,"meta":293,"style":293},"pup apm service-remapping update \u003CRULE_ID> \\\n  --name \"\u003CRULE_NAME>\" \\\n  --filter \"\u003CFILTER>\" \\\n  --rule-type \u003CTYPE> \\\n  --value \"\u003CNEW_NAME>\" \\\n  --version \u003CVERSION>\n",[3723],{"type":47,"tag":72,"props":3724,"children":3725},{"__ignoreMap":293},[3726,3766,3789,3812,3839,3863],{"type":47,"tag":299,"props":3727,"children":3728},{"class":301,"line":302},[3729,3733,3737,3741,3746,3750,3754,3758,3762],{"type":47,"tag":299,"props":3730,"children":3731},{"style":387},[3732],{"type":53,"value":42},{"type":47,"tag":299,"props":3734,"children":3735},{"style":318},[3736],{"type":53,"value":2007},{"type":47,"tag":299,"props":3738,"children":3739},{"style":318},[3740],{"type":53,"value":2609},{"type":47,"tag":299,"props":3742,"children":3743},{"style":318},[3744],{"type":53,"value":3745}," update",{"type":47,"tag":299,"props":3747,"children":3748},{"style":312},[3749],{"type":53,"value":3027},{"type":47,"tag":299,"props":3751,"children":3752},{"style":318},[3753],{"type":53,"value":3421},{"type":47,"tag":299,"props":3755,"children":3756},{"style":306},[3757],{"type":53,"value":3426},{"type":47,"tag":299,"props":3759,"children":3760},{"style":312},[3761],{"type":53,"value":3042},{"type":47,"tag":299,"props":3763,"children":3764},{"style":306},[3765],{"type":53,"value":2966},{"type":47,"tag":299,"props":3767,"children":3768},{"class":301,"line":1285},[3769,3773,3777,3781,3785],{"type":47,"tag":299,"props":3770,"children":3771},{"style":318},[3772],{"type":53,"value":2974},{"type":47,"tag":299,"props":3774,"children":3775},{"style":312},[3776],{"type":53,"value":409},{"type":47,"tag":299,"props":3778,"children":3779},{"style":318},[3780],{"type":53,"value":2877},{"type":47,"tag":299,"props":3782,"children":3783},{"style":312},[3784],{"type":53,"value":419},{"type":47,"tag":299,"props":3786,"children":3787},{"style":306},[3788],{"type":53,"value":2966},{"type":47,"tag":299,"props":3790,"children":3791},{"class":301,"line":1589},[3792,3796,3800,3804,3808],{"type":47,"tag":299,"props":3793,"children":3794},{"style":318},[3795],{"type":53,"value":2998},{"type":47,"tag":299,"props":3797,"children":3798},{"style":312},[3799],{"type":53,"value":409},{"type":47,"tag":299,"props":3801,"children":3802},{"style":318},[3803],{"type":53,"value":2885},{"type":47,"tag":299,"props":3805,"children":3806},{"style":312},[3807],{"type":53,"value":419},{"type":47,"tag":299,"props":3809,"children":3810},{"style":306},[3811],{"type":53,"value":2966},{"type":47,"tag":299,"props":3813,"children":3814},{"class":301,"line":2465},[3815,3819,3823,3827,3831,3835],{"type":47,"tag":299,"props":3816,"children":3817},{"style":318},[3818],{"type":53,"value":3022},{"type":47,"tag":299,"props":3820,"children":3821},{"style":312},[3822],{"type":53,"value":3027},{"type":47,"tag":299,"props":3824,"children":3825},{"style":318},[3826],{"type":53,"value":3032},{"type":47,"tag":299,"props":3828,"children":3829},{"style":306},[3830],{"type":53,"value":3037},{"type":47,"tag":299,"props":3832,"children":3833},{"style":312},[3834],{"type":53,"value":3042},{"type":47,"tag":299,"props":3836,"children":3837},{"style":306},[3838],{"type":53,"value":2966},{"type":47,"tag":299,"props":3840,"children":3841},{"class":301,"line":2474},[3842,3846,3850,3855,3859],{"type":47,"tag":299,"props":3843,"children":3844},{"style":318},[3845],{"type":53,"value":3054},{"type":47,"tag":299,"props":3847,"children":3848},{"style":312},[3849],{"type":53,"value":409},{"type":47,"tag":299,"props":3851,"children":3852},{"style":318},[3853],{"type":53,"value":3854},"\u003CNEW_NAME>",{"type":47,"tag":299,"props":3856,"children":3857},{"style":312},[3858],{"type":53,"value":419},{"type":47,"tag":299,"props":3860,"children":3861},{"style":306},[3862],{"type":53,"value":2966},{"type":47,"tag":299,"props":3864,"children":3865},{"class":301,"line":2520},[3866,3871,3875,3880,3885],{"type":47,"tag":299,"props":3867,"children":3868},{"style":318},[3869],{"type":53,"value":3870},"  --version",{"type":47,"tag":299,"props":3872,"children":3873},{"style":312},[3874],{"type":53,"value":3027},{"type":47,"tag":299,"props":3876,"children":3877},{"style":318},[3878],{"type":53,"value":3879},"VERSIO",{"type":47,"tag":299,"props":3881,"children":3882},{"style":306},[3883],{"type":53,"value":3884},"N",{"type":47,"tag":299,"props":3886,"children":3887},{"style":312},[3888],{"type":53,"value":1713},{"type":47,"tag":60,"props":3890,"children":3891},{},[3892,3893,3899,3901,3906],{"type":53,"value":3098},{"type":47,"tag":72,"props":3894,"children":3896},{"className":3895},[],[3897],{"type":53,"value":3898},"409 Conflict",{"type":53,"value":3900}," — the rule was modified since you fetched it. Re-fetch with ",{"type":47,"tag":72,"props":3902,"children":3904},{"className":3903},[],[3905],{"type":53,"value":1393},{"type":53,"value":3907}," to get the current version and retry.",{"type":47,"tag":1217,"props":3909,"children":3911},{"id":3910},"delete-a-rule",[3912],{"type":53,"value":3913},"Delete a rule",{"type":47,"tag":60,"props":3915,"children":3916},{},[3917,3919,3924,3925,3930],{"type":53,"value":3918},"Show the user the rule's name and filter first, then ask for confirmation. Delete requires both the rule ",{"type":47,"tag":72,"props":3920,"children":3922},{"className":3921},[],[3923],{"type":53,"value":3077},{"type":53,"value":1387},{"type":47,"tag":72,"props":3926,"children":3928},{"className":3927},[],[3929],{"type":53,"value":3091},{"type":53,"value":3931}," from the list\u002Fget output:",{"type":47,"tag":1217,"props":3933,"children":3935},{"id":3934},"claude-runs-13",[3936],{"type":53,"value":1228},{"type":47,"tag":288,"props":3938,"children":3940},{"className":290,"code":3939,"language":292,"meta":293,"style":293},"pup apm service-remapping delete \u003CRULE_ID> \u003CRULE_VERSION>\n",[3941],{"type":47,"tag":72,"props":3942,"children":3943},{"__ignoreMap":293},[3944],{"type":47,"tag":299,"props":3945,"children":3946},{"class":301,"line":302},[3947,3951,3955,3959,3964,3968,3972,3976,3980,3984,3989,3993],{"type":47,"tag":299,"props":3948,"children":3949},{"style":387},[3950],{"type":53,"value":42},{"type":47,"tag":299,"props":3952,"children":3953},{"style":318},[3954],{"type":53,"value":2007},{"type":47,"tag":299,"props":3956,"children":3957},{"style":318},[3958],{"type":53,"value":2609},{"type":47,"tag":299,"props":3960,"children":3961},{"style":318},[3962],{"type":53,"value":3963}," delete",{"type":47,"tag":299,"props":3965,"children":3966},{"style":312},[3967],{"type":53,"value":3027},{"type":47,"tag":299,"props":3969,"children":3970},{"style":318},[3971],{"type":53,"value":3421},{"type":47,"tag":299,"props":3973,"children":3974},{"style":306},[3975],{"type":53,"value":3426},{"type":47,"tag":299,"props":3977,"children":3978},{"style":312},[3979],{"type":53,"value":3042},{"type":47,"tag":299,"props":3981,"children":3982},{"style":312},[3983],{"type":53,"value":3027},{"type":47,"tag":299,"props":3985,"children":3986},{"style":318},[3987],{"type":53,"value":3988},"RULE_VERSIO",{"type":47,"tag":299,"props":3990,"children":3991},{"style":306},[3992],{"type":53,"value":3884},{"type":47,"tag":299,"props":3994,"children":3995},{"style":312},[3996],{"type":53,"value":1713},{"type":47,"tag":60,"props":3998,"children":3999},{},[4000,4001,4006,4007,4012],{"type":53,"value":3098},{"type":47,"tag":72,"props":4002,"children":4004},{"className":4003},[],[4005],{"type":53,"value":3898},{"type":53,"value":3900},{"type":47,"tag":72,"props":4008,"children":4010},{"className":4009},[],[4011],{"type":53,"value":1393},{"type":53,"value":3907},{"type":47,"tag":89,"props":4014,"children":4015},{},[],{"type":47,"tag":93,"props":4017,"children":4019},{"id":4018},"done",[4020],{"type":53,"value":4021},"Done",{"type":47,"tag":60,"props":4023,"children":4024},{},[4025],{"type":53,"value":4026},"Exit when ALL of the following are true:",{"type":47,"tag":776,"props":4028,"children":4031},{"className":4029},[4030],"contains-task-list",[4032,4044,4060,4080,4094,4103],{"type":47,"tag":780,"props":4033,"children":4036},{"className":4034},[4035],"task-list-item",[4037,4042],{"type":47,"tag":4038,"props":4039,"children":4041},"input",{"disabled":2459,"type":4040},"checkbox",[],{"type":53,"value":4043}," Rule shown to user and confirmed before creation",{"type":47,"tag":780,"props":4045,"children":4047},{"className":4046},[4035],[4048,4051,4053,4058],{"type":47,"tag":4038,"props":4049,"children":4050},{"disabled":2459,"type":4040},[],{"type":53,"value":4052}," Rule created and ",{"type":47,"tag":72,"props":4054,"children":4056},{"className":4055},[],[4057],{"type":53,"value":3077},{"type":53,"value":4059}," returned in response",{"type":47,"tag":780,"props":4061,"children":4063},{"className":4062},[4035],[4064,4067,4069,4074,4075],{"type":47,"tag":4038,"props":4065,"children":4066},{"disabled":2459,"type":4040},[],{"type":53,"value":4068}," For SERVICE rules: new service name visible in ",{"type":47,"tag":72,"props":4070,"children":4072},{"className":4071},[],[4073],{"type":53,"value":1900},{"type":53,"value":3365},{"type":47,"tag":72,"props":4076,"children":4078},{"className":4077},[],[4079],{"type":53,"value":346},{"type":47,"tag":780,"props":4081,"children":4083},{"className":4082},[4035],[4084,4087,4089],{"type":47,"tag":4038,"props":4085,"children":4086},{"disabled":2459,"type":4040},[],{"type":53,"value":4088}," For INFERRED_ENTITY rules: user confirmed new entity name appears in APM Service Map, or spans show ",{"type":47,"tag":72,"props":4090,"children":4092},{"className":4091},[],[4093],{"type":53,"value":3545},{"type":47,"tag":780,"props":4095,"children":4097},{"className":4096},[4035],[4098,4101],{"type":47,"tag":4038,"props":4099,"children":4100},{"disabled":2459,"type":4040},[],{"type":53,"value":4102}," Impacted monitors identified and offered for update",{"type":47,"tag":780,"props":4104,"children":4106},{"className":4105},[4035],[4107,4110],{"type":47,"tag":4038,"props":4108,"children":4109},{"disabled":2459,"type":4040},[],{"type":53,"value":4111}," User confirmed the remapping matches their intent",{"type":47,"tag":89,"props":4113,"children":4114},{},[],{"type":47,"tag":93,"props":4116,"children":4118},{"id":4117},"security-constraints",[4119],{"type":53,"value":4120},"Security constraints",{"type":47,"tag":776,"props":4122,"children":4123},{},[4124,4142,4147,4159],{"type":47,"tag":780,"props":4125,"children":4126},{},[4127,4129,4135,4136],{"type":53,"value":4128},"Never write a raw API key into any file or chat message — always use ",{"type":47,"tag":72,"props":4130,"children":4132},{"className":4131},[],[4133],{"type":53,"value":4134},"$DD_API_KEY",{"type":53,"value":1387},{"type":47,"tag":72,"props":4137,"children":4139},{"className":4138},[],[4140],{"type":53,"value":4141},"$DD_APP_KEY",{"type":47,"tag":780,"props":4143,"children":4144},{},[4145],{"type":53,"value":4146},"Never create or delete a rule without explicit user confirmation — show the full rule before creating",{"type":47,"tag":780,"props":4148,"children":4149},{},[4150,4152,4157],{"type":53,"value":4151},"Never assume ",{"type":47,"tag":72,"props":4153,"children":4155},{"className":4154},[],[4156],{"type":53,"value":1868},{"type":53,"value":4158}," as the environment — always confirm with the user",{"type":47,"tag":780,"props":4160,"children":4161},{},[4162],{"type":53,"value":4163},"Never run DELETE without showing the user the rule's name and filter first",{"type":47,"tag":4165,"props":4166,"children":4167},"style",{},[4168],{"type":53,"value":4169},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":4171,"total":4343},[4172,4187,4205,4216,4232,4246,4262,4276,4288,4300,4310,4330],{"slug":4173,"name":4173,"fn":4174,"description":4175,"org":4176,"tags":4177,"stars":25,"repoUrl":26,"updatedAt":4186},"agent-install","install Datadog Agent on Kubernetes","Install the Datadog Agent on Kubernetes using the Datadog Operator — required before enabling Single Step Instrumentation (SSI), which automatically instruments applications for APM without code changes. Only use if no Datadog Agent is deployed on the cluster yet.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4178,4179,4182,4185],{"name":23,"slug":24,"type":15},{"name":4180,"slug":4181,"type":15},"Deployment","deployment",{"name":4183,"slug":4184,"type":15},"Kubernetes","kubernetes",{"name":13,"slug":14,"type":15},"2026-04-15T04:57:27.489805",{"slug":4188,"name":4188,"fn":4189,"description":4190,"org":4191,"tags":4192,"stars":25,"repoUrl":26,"updatedAt":4204},"agent-observability-auto-experiment","run iterative code improvements using Datadog data","Run an iterative code-improvement hill-climb against real Datadog LLM-Obs data, locally, with Claude Code as the agent. Establishes a baseline eval, makes one focused change, re-scores with the same harness, keeps the change if it improves the score in the goal's direction (labeling within-noise gains tentative), and repeats. Use when the user says \"run an auto experiment\", \"hill-climb this code\", \"iteratively improve X and measure the delta\", \"optimize this prompt\u002Ffile against my traces\", \"auto-optimize against LLM-Obs\", or wants the local equivalent of the auto_experiments worker. Works from a local dataset file, an ml_app, a dataset_id, or a list of trace_ids.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4193,4194,4197,4200,4203],{"name":23,"slug":24,"type":15},{"name":4195,"slug":4196,"type":15},"Debugging","debugging",{"name":4198,"slug":4199,"type":15},"Evals","evals",{"name":4201,"slug":4202,"type":15},"LLM","llm",{"name":13,"slug":14,"type":15},"2026-07-31T05:52:13.711906",{"slug":4206,"name":4206,"fn":4207,"description":4208,"org":4209,"tags":4210,"stars":25,"repoUrl":26,"updatedAt":4215},"agent-observability-eval-bootstrap","bootstrap evaluators from production traces","Bootstrap evaluators from production traces — by default propose online LLM-judge evaluators and, after you confirm, create them in Datadog as disabled drafts (never auto-enabled); on request emit Python SDK code or a framework-agnostic JSON spec instead. Use when user says \"bootstrap evaluators\", \"generate evaluators\", \"create evals from traces\", \"eval bootstrap\", \"write evaluators\", \"build eval suite\", \"publish evaluators\", or wants to generate BaseEvaluator\u002FLLMJudge code or online judge configs from production LLM trace data. Works with ml_app and optional RCA report or failure hypothesis.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4211,4212,4213,4214],{"name":23,"slug":24,"type":15},{"name":4198,"slug":4199,"type":15},{"name":4201,"slug":4202,"type":15},{"name":13,"slug":14,"type":15},"2026-06-19T09:04:19.259734",{"slug":4217,"name":4217,"fn":4218,"description":4219,"org":4220,"tags":4221,"stars":25,"repoUrl":26,"updatedAt":4231},"agent-observability-eval-pipeline","run agent observability and evaluation pipelines","End-to-end Agent Observability pipeline for an instrumented ml_app — classify production traces, root-cause failures, bootstrap evaluators, then (optionally) sample + publish a dataset, generate + run an experiment, and analyze results. Six narrated phases with a standardized banner and a \"continue\" checkpoint between each. Pure orchestration over the agent-observability sub-skills (`agent-observability-session-classify`, `agent-observability-trace-rca`, `agent-observability-eval-bootstrap`, `agent-observability-experiment-py-bootstrap`, `agent-observability-experiment-analyzer`). Use when user says \"run the eval pipeline\", \"go from traces to evals\", \"bootstrap evals end to end\", \"classify then RCA then bootstrap\", \"build an eval set from scratch\", \"onboard me to datasets and experiments\", \"walk me through experiments\", \"I have an ml_app, now what\", \"Agent Observability onboarding\", \"guided experiment setup\", \"from traces to experiments\", or wants a deterministic, narrated tour from production data through evaluators, datasets, and experiments. Stop early with `--stop-after \u003Cphase>` to short-circuit at evaluators or dataset, or resume mid-flow with `--start-at \u003Cphase>`.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4222,4225,4228,4229,4230],{"name":4223,"slug":4224,"type":15},"Agents","agents",{"name":4226,"slug":4227,"type":15},"Data Pipeline","data-pipeline",{"name":23,"slug":24,"type":15},{"name":4198,"slug":4199,"type":15},{"name":13,"slug":14,"type":15},"2026-06-19T09:04:17.231423",{"slug":4233,"name":4233,"fn":4234,"description":4235,"org":4236,"tags":4237,"stars":25,"repoUrl":26,"updatedAt":4245},"agent-observability-experiment-analyzer","analyze LLM experiment results","Analyze LLM experiment results. Handles single or comparative experiments, exploratory or Q&A modes. Use when user says \"analyze experiment\", \"compare experiments\", \"analyze against baseline\", or provides one or two experiment IDs for analysis.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4238,4241,4242,4243,4244],{"name":4239,"slug":4240,"type":15},"Analytics","analytics",{"name":23,"slug":24,"type":15},{"name":4198,"slug":4199,"type":15},{"name":4201,"slug":4202,"type":15},{"name":13,"slug":14,"type":15},"2026-06-19T09:04:21.212498",{"slug":4247,"name":4247,"fn":4248,"description":4249,"org":4250,"tags":4251,"stars":25,"repoUrl":26,"updatedAt":4261},"agent-observability-experiment-py-bootstrap","generate Python experiment clients for LLM observability","Generates a self-contained Python experiment client that uses the ddtrace.llmobs SDK. Emits either a runnable .py script or a Jupyter .ipynb notebook matching the canonical DataDog reference notebook style. Use when the user says \"generate Python experiment\", \"write an SDK experiment\", \"create a ddtrace experiment\", \"Python notebook experiment\", \"use the Agent Observability SDK\", or has `ddtrace` installed and wants idiomatic SDK code.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4252,4253,4256,4257,4258],{"name":23,"slug":24,"type":15},{"name":4254,"slug":4255,"type":15},"Jupyter","jupyter",{"name":4201,"slug":4202,"type":15},{"name":13,"slug":14,"type":15},{"name":4259,"slug":4260,"type":15},"Python","python","2026-06-19T09:04:22.640384",{"slug":4263,"name":4263,"fn":4264,"description":4265,"org":4266,"tags":4267,"stars":25,"repoUrl":26,"updatedAt":4275},"agent-observability-replay-trace","iterate on LLM traces with local code","Use when a developer wants to iterate on ONE specific Agent Observability \u002F LLM Obs trace whose output they didn't like — re-running that trace against their LOCAL code, seeing a concise diff of the old vs new output, and looping (change code → replay → diff) until satisfied. Invoked as \u002Fagent-observability-replay-trace \u003Ctrace-id> [changes to test]. Signals: \"replay this trace\"; \"iterate on a trace\"; \"this trace's output is wrong, fix it and re-run\"; \"re-run trace \u003Cid> with \u003Cchange>\"; pasting a trace id from the Agent Observability UI with a description of what to fix. It fetches the trace via the datadog-llmo MCP or the pup CLI, edits code, re-runs the app to emit a NEW trace, and diffs the two — no local server, no browser. For agents traced with ddtrace \u002F LLM Obs (Python first-class), with JSON-serializable entry input. Do NOT use for: scored Experiments or the browser \"Replay\" button (that's agent-observability-replay-experiment), building an experiment from a dataset\u002FCSV, writing evaluators, root-causing failed traces, or RUM\u002FHTTP session replay.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4268,4269,4270,4271,4272],{"name":23,"slug":24,"type":15},{"name":4195,"slug":4196,"type":15},{"name":4201,"slug":4202,"type":15},{"name":13,"slug":14,"type":15},{"name":4273,"slug":4274,"type":15},"Tracing","tracing","2026-07-31T05:52:08.594182",{"slug":4277,"name":4277,"fn":4278,"description":4279,"org":4280,"tags":4281,"stars":25,"repoUrl":26,"updatedAt":4287},"agent-observability-session-classify","evaluate user intent satisfaction in sessions","Classify whether user intent was satisfied in a Datadog Agent Observability trace or session. Three modes: (1) session_id — classify a single CMD+I assistant session with RUM; (2) trace_id — classify a single Agent Observability trace without RUM; (3) ml_app — sample and classify multiple sessions or traces from a given LLM app. Output is compact by default (verdict + one-sentence reason). Use when evaluating satisfaction, classifying sessions\u002Ftraces, labeling data, or generating signal for agent-observability-eval-pipeline or agent-observability-trace-rca.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4282,4283,4284,4285,4286],{"name":4239,"slug":4240,"type":15},{"name":23,"slug":24,"type":15},{"name":4198,"slug":4199,"type":15},{"name":4201,"slug":4202,"type":15},{"name":13,"slug":14,"type":15},"2026-06-19T09:04:26.341497",{"slug":4289,"name":4289,"fn":4290,"description":4291,"org":4292,"tags":4293,"stars":25,"repoUrl":26,"updatedAt":4299},"agent-observability-trace-rca","diagnose LLM application failures from traces","Root cause analysis on production LLM traces. Diagnoses why an LLM application is failing — works from eval judge verdicts, runtime errors, or structural anomalies depending on what signals are present. Walks the span tree from symptom to root cause. Use when user says \"what's wrong with my app\", \"why is my eval failing\", \"analyze errors\", \"root cause analysis\", \"diagnose failures\", or wants to understand production failure patterns.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4294,4295,4296,4297,4298],{"name":23,"slug":24,"type":15},{"name":4195,"slug":4196,"type":15},{"name":4198,"slug":4199,"type":15},{"name":4201,"slug":4202,"type":15},{"name":13,"slug":14,"type":15},"2026-06-19T09:04:24.316244",{"slug":4301,"name":4301,"fn":4302,"description":4303,"org":4304,"tags":4305,"stars":25,"repoUrl":26,"updatedAt":4309},"agent-skills","use Datadog observability skills","Datadog skills for AI agents. Essential monitoring, logging, tracing and observability.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4306,4307,4308],{"name":23,"slug":24,"type":15},{"name":20,"slug":21,"type":15},{"name":13,"slug":14,"type":15},"2026-04-06T18:08:33.337476",{"slug":4311,"name":4311,"fn":4312,"description":4313,"org":4314,"tags":4315,"stars":25,"repoUrl":26,"updatedAt":4329},"datadog-app","build and manage Datadog applications","Guides developers building Datadog Apps with TypeScript, React, the @datadog\u002Fapps scaffolder, and @datadog\u002Fvite-plugin. Use when a user wants to scaffold, run, debug, upgrade, build, upload, publish, upload without publishing (draft upload), add an upload-no-publish script, set up CI\u002FCD, use OAuth or API\u002Fapplication key auth, trigger\u002Fpoll Workflow Automation, choose DDSQL or Action Catalog for backend data access, or query app datastores with DDSQL, including backend function troubleshooting.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4316,4317,4320,4323,4326],{"name":23,"slug":24,"type":15},{"name":4318,"slug":4319,"type":15},"Frontend","frontend",{"name":4321,"slug":4322,"type":15},"React","react",{"name":4324,"slug":4325,"type":15},"TypeScript","typescript",{"name":4327,"slug":4328,"type":15},"Vite","vite","2026-06-18T08:01:32.562331",{"slug":4331,"name":4331,"fn":4332,"description":4333,"org":4334,"tags":4335,"stars":25,"repoUrl":26,"updatedAt":4342},"dd-apm","query Datadog APM traces","APM - install, onboard, instrument, enable, set up, configure, traces, services, dependencies, performance analysis. Use for any request involving Datadog APM setup, instrumentation (SSI, ddtrace, agent install), or analysis.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4336,4337,4340,4341],{"name":23,"slug":24,"type":15},{"name":4338,"slug":4339,"type":15},"Distributed Tracing","distributed-tracing",{"name":13,"slug":14,"type":15},{"name":17,"slug":18,"type":15},"2026-04-06T18:08:34.575282",35,{"items":4345,"total":4400},[4346,4353,4361,4368,4376,4384,4392],{"slug":4173,"name":4173,"fn":4174,"description":4175,"org":4347,"tags":4348,"stars":25,"repoUrl":26,"updatedAt":4186},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4349,4350,4351,4352],{"name":23,"slug":24,"type":15},{"name":4180,"slug":4181,"type":15},{"name":4183,"slug":4184,"type":15},{"name":13,"slug":14,"type":15},{"slug":4188,"name":4188,"fn":4189,"description":4190,"org":4354,"tags":4355,"stars":25,"repoUrl":26,"updatedAt":4204},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4356,4357,4358,4359,4360],{"name":23,"slug":24,"type":15},{"name":4195,"slug":4196,"type":15},{"name":4198,"slug":4199,"type":15},{"name":4201,"slug":4202,"type":15},{"name":13,"slug":14,"type":15},{"slug":4206,"name":4206,"fn":4207,"description":4208,"org":4362,"tags":4363,"stars":25,"repoUrl":26,"updatedAt":4215},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4364,4365,4366,4367],{"name":23,"slug":24,"type":15},{"name":4198,"slug":4199,"type":15},{"name":4201,"slug":4202,"type":15},{"name":13,"slug":14,"type":15},{"slug":4217,"name":4217,"fn":4218,"description":4219,"org":4369,"tags":4370,"stars":25,"repoUrl":26,"updatedAt":4231},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4371,4372,4373,4374,4375],{"name":4223,"slug":4224,"type":15},{"name":4226,"slug":4227,"type":15},{"name":23,"slug":24,"type":15},{"name":4198,"slug":4199,"type":15},{"name":13,"slug":14,"type":15},{"slug":4233,"name":4233,"fn":4234,"description":4235,"org":4377,"tags":4378,"stars":25,"repoUrl":26,"updatedAt":4245},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4379,4380,4381,4382,4383],{"name":4239,"slug":4240,"type":15},{"name":23,"slug":24,"type":15},{"name":4198,"slug":4199,"type":15},{"name":4201,"slug":4202,"type":15},{"name":13,"slug":14,"type":15},{"slug":4247,"name":4247,"fn":4248,"description":4249,"org":4385,"tags":4386,"stars":25,"repoUrl":26,"updatedAt":4261},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4387,4388,4389,4390,4391],{"name":23,"slug":24,"type":15},{"name":4254,"slug":4255,"type":15},{"name":4201,"slug":4202,"type":15},{"name":13,"slug":14,"type":15},{"name":4259,"slug":4260,"type":15},{"slug":4263,"name":4263,"fn":4264,"description":4265,"org":4393,"tags":4394,"stars":25,"repoUrl":26,"updatedAt":4275},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4395,4396,4397,4398,4399],{"name":23,"slug":24,"type":15},{"name":4195,"slug":4196,"type":15},{"name":4201,"slug":4202,"type":15},{"name":13,"slug":14,"type":15},{"name":4273,"slug":4274,"type":15},34]