instance_id stringlengths 10 65 | repo stringlengths 5 59 | pr_number int64 1 313k | task_type stringclasses 1
value | base_commit stringlengths 40 40 | review_commit stringlengths 40 40 | title stringlengths 2 282 | body stringlengths 7 3k | patch stringlengths 202 204k | n_defects int64 1 72 | n_supported int64 1 65 | n_major int64 0 32 | defects stringlengths 140 18.8k | certifier_count int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
DataDog__datadog-agent__47636 | DataDog/datadog-agent | 47,636 | defect | 5fb1364caaf88074e8a0e514df6de5116368329f | 19ea4731952527775af02be57e89c85257165c8e | [EBPF] gpu: enable device_events collector in spec test | ### What does this PR do?
Re-enables the device-events collector in the full metric spec test.
### Motivation
Full test coverage of all metrics, including `gpu.errors.xid.total`.
### Describe how you validated your changes
Changes related to unit tests, CI passing.
### Additional Notes
| diff --git a/pkg/collector/corechecks/gpu/gpu_test.go b/pkg/collector/corechecks/gpu/gpu_test.go
index f4dadf86e2a7..c49e7c1279eb 100644
--- a/pkg/collector/corechecks/gpu/gpu_test.go
+++ b/pkg/collector/corechecks/gpu/gpu_test.go
@@ -850,11 +850,6 @@ func TestMetricsFollowSpec(t *testing.T) {
specMetrics[name] = st... | 1 | 1 | 1 | [{"id": "G0", "claim": "Using time.Sleep(50 * time.Millisecond) to wait for the async device-events worker makes TestMetricsFollowSpec timing-dependent, so the injected XID event may not be consumed before the second Run() and the spec test can flake on a busy CI runner; a deterministic synchronization point should be ... | null |
DataDog__datadog-agent__47669 | DataDog/datadog-agent | 47,669 | defect | 4b66fcc7719576b96ff5444ce41d299af314a85e | 698b45ae2edc4380ec666a7fc4ead6e165cb1f33 | [EBPF] gpu: fix missing GPM metrics | ### What does this PR do?
Downgrades go-nvml to version 0.12.9 and removes the call to GpmQueryDeviceSupport, relying on the return values from other GPM related calls to check for GPM collector support.
### Motivation
Version 0.13.0 seems to have an ABI incompatibility with older driver versions, causing metr... | diff --git a/go.mod b/go.mod
index 25764e427f35..d4429dea2968 100644
--- a/go.mod
+++ b/go.mod
@@ -181,7 +181,7 @@ require (
github.com/Masterminds/sprig/v3 v3.3.0
github.com/Microsoft/go-winio v0.6.2
github.com/Microsoft/hcsshim v0.13.0
- github.com/NVIDIA/go-nvml v0.13.0-1
+ github.com/NVIDIA/go-nvml v0.12.9-0
... | 4 | 4 | 1 | [{"id": "G0", "claim": "removeUnsupportedMetrics now returns on the first sampling/metrics error and newGPMCollector treats that as a hard creation failure unless it matches the unsupported-device classifier, so a temporary GpmSampleGet/GpmMetricsGet error at init can prevent the GPM collector from being created for th... | null |
DataDog__datadog-agent__47741 | DataDog/datadog-agent | 47,741 | defect | 6264d25a11ca05f359e33e7b9dc13b6129956f56 | b688c9d8cfd06245a4193647852f0b8a87b81cdc | don't log in teeconfig when "compare" is a subset of "base" | ### What does this PR do?
addresses: https://datadoghq.atlassian.net/browse/AGENTCFG-676
### Motivation
reduces logging noise in teeconfig in the agent
### Describe how you validated your changes
added unit tests
### Additional Notes
| diff --git a/pkg/config/teeconfig/teeconfig.go b/pkg/config/teeconfig/teeconfig.go
index 64de6abaf7d2..bf08733b6c6a 100644
--- a/pkg/config/teeconfig/teeconfig.go
+++ b/pkg/config/teeconfig/teeconfig.go
@@ -230,10 +230,32 @@ func (t *teeConfig) compareResult(key, method string, base, compare interface{})
}
}
... | 2 | 2 | 2 | [{"id": "G0", "claim": "The early return suppresses logging whenever mapIsSubset(base, compare) is true, but under DD_CONF_NODETREEMODEL=enable-tee the base/compare roles are reversed (base is nodetree, compare is viper), so the check uses the wrong pair of maps and suppresses mismatches it should surface; it should de... | null |
DataDog__datadog-agent__47816 | DataDog/datadog-agent | 47,816 | defect | f2b51021d11b8727c52d116c0ccbce63eb879a27 | eb82ddf282e273cced8267a81dcb48ebb3649e95 | feat: adding kata integration | ### What does this PR do?
- Adding a new meta in Container entity types (this way I can query the store with my sandbox filter)
- Adding the `SandboxId` in all CRI implementations (containerd, crio, dockerd, podman ...) so that Container entities have the right sandbox id
- Adding a new go core check for kata
-... | diff --git a/comp/core/workloadmeta/collectors/internal/containerd/container_builder.go b/comp/core/workloadmeta/collectors/internal/containerd/container_builder.go
index 307aa00f0508..923b6477e7b1 100644
--- a/comp/core/workloadmeta/collectors/internal/containerd/container_builder.go
+++ b/comp/core/workloadmeta/colle... | 5 | 5 | 3 | [{"id": "G0", "claim": "Keeping only one containerID per sandboxID in the workloadmeta event cache overwrites containers on each SET event, so in multi-container pods buildBaseTags can query tags from an arbitrary container and sandbox metrics may pick up unstable container-specific tag associations over time.", "categ... | null |
DataDog__datadog-agent__47829 | DataDog/datadog-agent | 47,829 | defect | 12766a51f479a0b9a8376f49aa05a43ee317a752 | 01867d42f81981cfa9b96d506e399eeb578cc4b0 | Fix observer scorer: first post-onset match, drop greedy matching | tl;dr: The greedy match approach for scoring could give near-full credit to a pre-onset prediction a few seconds before disruption, and penalized some valid post-disruption detections as false positives. This PR fixes that.
- **Fixed match-stealing bug** : greedy distance based matcher could assign a baseline anom... | diff --git a/cmd/observer-scorer/main.go b/cmd/observer-scorer/main.go
index e45461eaedf0..47554d99e418 100644
--- a/cmd/observer-scorer/main.go
+++ b/cmd/observer-scorer/main.go
@@ -54,8 +54,8 @@ func main() {
fmt.Printf("Gaussian F1 Score\n")
fmt.Printf(" Input: %s\n", *outputPath)
fmt.Printf(" Sigma: ... | 2 | 1 | 1 | [{"id": "G0", "claim": "Removing `num_filtered_cascading` from `ScoreResult` changes the JSON contract returned by `observer-scorer` that the eval workflow's `eval_scenarios` still consumes, so a successful scoring run crashes with `KeyError` in the summary print as soon as at least one result is present.", "category":... | null |
DataDog__datadog-agent__47865 | DataDog/datadog-agent | 47,865 | defect | 9613f295c8fa792daf768019afec28a73ce1749e | ad7f2ebbc8e103e0953fa65286f9603fa2ef2e14 | refactor(discovery): Hardcode ignore_comms list and remove config option | ### What does this PR do?
Hardcodes the `ignore_comms` list for service discovery and removes the `discovery.ignored_command_names` config option entirely. Also implements comm-based ignoring in the Rust discovery module, which previously had no support for it at all.
### Motivation
The configurable `ignore_comms` l... | diff --git a/pkg/config/setup/system_probe.go b/pkg/config/setup/system_probe.go
index e598ba0b62dc..4be86ef57709 100644
--- a/pkg/config/setup/system_probe.go
+++ b/pkg/config/setup/system_probe.go
@@ -351,7 +351,6 @@ func InitSystemProbeConfig(cfg pkgconfigmodel.Setup) {
cfg.BindEnv("discovery.enabled") //nolint:fo... | 3 | 3 | 1 | [{"id": "G0", "claim": "The early `continue` for ignored comms in get_services runs before `is_apm_injector_in_process_maps`, so Rust mode drops `injected_pids` for any ignored process even though injector detection should be preserved independently of service detection.", "category": "correctness", "verdict": "support... | null |
DataDog__datadog-agent__47875 | DataDog/datadog-agent | 47,875 | defect | 6e8b562220836433af30e68ead746bde1479fc64 | 0456e57c16cb1081fa7bc0d5ae781a69ec1c7520 | fix(fleet): Skip subprocess for getStates on Windows to fix OOM errors | ### What does this PR do?
Moves `getStates` from the platform-agnostic `installer_exec.go` into platform-specific files:
- **Windows** (`installer_exec_windows.go`): Reads package and config states directly in-process using `repository.NewRepositories` and `config.Directories.GetState()`, avoiding the subprocess sp... | diff --git a/pkg/fleet/installer/commands/command_setup_nix_test.go b/pkg/fleet/installer/commands/command_setup_nix_test.go
new file mode 100644
index 000000000000..ddc48b56f2f1
--- /dev/null
+++ b/pkg/fleet/installer/commands/command_setup_nix_test.go
@@ -0,0 +1,12 @@
+// Unless explicitly stated otherwise all files ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new Windows in-process getStates no longer ensures the packages directory exists before reading state, so on a fresh or partially initialized host where it is absent the os.ReadDir error makes ConfigAndPackageStates and its callers fail instead of returning an empty state.", "category": "cor... | null |
DataDog__datadog-agent__47898 | DataDog/datadog-agent | 47,898 | defect | b419e639c8e81ac34aee5bda87381d8225af4872 | 672ad02d518b4544d7c68f1a70d90555a525b7bd | [ACIX-1365] feat(e2e): add imagePullSecrets to K8s workload app definitions | ## Summary
K8s workload app definitions (dogstatsd, etcd, nginx, redis, prometheus, tracegen, singlestep, mutatedbyadmissioncontroller, istio httpbin) now create and attach an `imagePullSecret` when `ImagePullRegistry` is configured.
- Uses the existing `NewImagePullSecret` helper (already called by the Helm agent in... | diff --git a/test/e2e-framework/common/utils/kubernetes.go b/test/e2e-framework/common/utils/kubernetes.go
index 6e7c9ffe5c4e..3d27f7e2674b 100644
--- a/test/e2e-framework/common/utils/kubernetes.go
+++ b/test/e2e-framework/common/utils/kubernetes.go
@@ -71,9 +71,11 @@ func NewImagePullSecret(e config.Env, namespace st... | 3 | 3 | 2 | [{"id": "G0", "claim": "The PR description says the python base image ref is updated to the ECR pull-through cache equivalent of 3.12-slim, but the code switches to a different tag/variant (3.12-slim-bullseye); either the code or the description should be aligned.", "category": "documentation", "verdict": "supported", ... | null |
DataDog__datadog-agent__47936 | DataDog/datadog-agent | 47,936 | defect | 9613f295c8fa792daf768019afec28a73ce1749e | 2268716a5434b4c48cdc3a2a7777da91450ac67c | feat(trace): Add Semantic accessors for Span tags, apply lib in "http.status_code" lookup | # What does this PR do?
Adds DDSpanAccessor (V0) and DDSpanAccessorV1 (V1) — typed Accessor implementations that wrap DD span attributes for both the old (meta/metrics maps) and new (InternalSpan) payloads. Wires both into getStatusCode and getStatusCodeV1 as the first concrete use of the registry for HTTP status co... | diff --git a/pkg/trace/semantics/lookup.go b/pkg/trace/semantics/lookup.go
index 5fcd9227b0f3..44bfe9917bb3 100644
--- a/pkg/trace/semantics/lookup.go
+++ b/pkg/trace/semantics/lookup.go
@@ -7,12 +7,14 @@ package semantics
import (
"fmt"
+ "math"
"strconv"
)
// Accessor provides attribute access for semantic... | 2 | 2 | 1 | [{"id": "G0", "claim": "Casting the semantic lookup result directly with uint32(v) no longer rejects malformed status codes like \"-1\" or values above 4294967295 that ParseUint(...,32) used to reject, so invalid tracer values can silently wrap into unrelated APM stats buckets.", "category": "correctness", "verdict": "... | null |
DataDog__datadog-agent__47937 | DataDog/datadog-agent | 47,937 | defect | 7ab624e4173a5d431c730531d5e7d54f73cc9ef0 | 90e0962e3540c72b255d22f08eaa3f4726f6cb65 | [OTAGENT-918] Set agent hostname in Datadog extension | ### What does this PR do?
Sets `extensions.datadog.hostname` to the agent resolved hostname in the converter. If hostname resolution fails, a warning is logged and hostname is set to "", allowing the extension to fall back to its own hostname inference.
### Motivation
The datadog extension uses the configured host... | diff --git a/comp/otelcol/converter/impl/autoconfigure.go b/comp/otelcol/converter/impl/autoconfigure.go
index 7f647f5c4db5..7a1d81a45c8c 100644
--- a/comp/otelcol/converter/impl/autoconfigure.go
+++ b/comp/otelcol/converter/impl/autoconfigure.go
@@ -7,10 +7,12 @@
package converterimpl
import (
+ "context"
"slice... | 1 | 1 | 1 | [{"id": "G0", "claim": "In the agent path c.logger is nil because NewConverterForAgent builds ddConverter without initializing logger, so when c.hostname.Get(ctx) returns an error the added c.logger.Warn call dereferences that nil pointer and panics instead of falling back to an empty hostname.", "category": "correctne... | null |
DataDog__datadog-agent__47944 | DataDog/datadog-agent | 47,944 | defect | 917edeee62aa814f588e228faef6aa068cb0a48e | 7bf347d25b68f6ade550b453034f856a7931cb9e | Fix network check reading container network namespace instead of host in Docker (AGENT-15840) | ### What does this PR do?
Makes the Go-based network check (networkv2) read host network stats when the agent runs in Docker with the host’s proc mounted (e.g. `/host/proc`). It does this by using `net.IOCountersByFile` with the path from `GetNetProcBasePath()` (e.g. `/host/proc/1/net/dev`) instead of `net.IOCounters(... | diff --git a/pkg/collector/corechecks/net/networkv2/network.go b/pkg/collector/corechecks/net/networkv2/network.go
index 89e562c06345..2a01a571c3e2 100644
--- a/pkg/collector/corechecks/net/networkv2/network.go
+++ b/pkg/collector/corechecks/net/networkv2/network.go
@@ -113,7 +113,16 @@ type connectionStateEntry struct... | 2 | 2 | 1 | [{"id": "G0", "claim": "Add a log (even debug-level) recording the fallback and the error when IOCountersByFile fails and the code falls back to net.IOCounters.", "category": "observability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a test explicitly covering the new ... | null |
DataDog__datadog-agent__47988 | DataDog/datadog-agent | 47,988 | defect | 49cc033d80751d7bf9a4777e5662278f6842dbac | 4008c923d526ef90b4dff6aca68b90f6674c34fe | Reintroduce support for Azure Service Principal credentials | ### What does this PR do?
Reintroduce `azure_session` configuration with Secrets Connector
In [secrets backend v1](https://github.com/DataDog/datadog-secret-backend/blob/v1/docs/azure/README.md#example-configuration), we used `azidentity` and lost the ability to set `azure_tenant_id`, `azure_client_secret`, etc ... | diff --git a/cmd/secret-generic-connector/backend/azure/keyvault.go b/cmd/secret-generic-connector/backend/azure/keyvault.go
index 9ed8be5ac0e3..ad6899456715 100644
--- a/cmd/secret-generic-connector/backend/azure/keyvault.go
+++ b/cmd/secret-generic-connector/backend/azure/keyvault.go
@@ -12,6 +12,7 @@ import (
"enc... | 2 | 1 | 1 | [{"id": "G0", "claim": "azure_session.azure_client_secret introduces a plaintext credential into secret_backend_config, but flares serialize AllSettingsWithoutSecrets() to runtime_config_dump.yaml and the default scrubber neither redacts secret_backend_config nor generic *_secret keys, so the service-principal secret w... | null |
DataDog__datadog-agent__47999 | DataDog/datadog-agent | 47,999 | defect | 6ad2f1d1c1707431589159a5f3dce2ecd1fbae31 | 9d02cd6db90f4378019bebc6b4128c444802e81c | [CWS] fix off-by-one out-of-bounds in event handler arrays | Arrays sized [model.MaxAllEventType] are too small when MaxAllEventType is used as an index directly, since array indices go from 0 to len-1. Increase size to MaxAllEventType+1 for eventHandlers, eventConsumers, customEventHandlers, and the syscall stats slice.
Also add explicit bounds checks in sendEventToConsumers... | diff --git a/pkg/security/probe/monitors/syscalls/syscalls_monitor.go b/pkg/security/probe/monitors/syscalls/syscalls_monitor.go
index 139bdee4513c..75763a6b74bd 100644
--- a/pkg/security/probe/monitors/syscalls/syscalls_monitor.go
+++ b/pkg/security/probe/monitors/syscalls/syscalls_monitor.go
@@ -35,7 +35,7 @@ type Mo... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new bounds guards are still off by one: `int(t) > len(...)` lets `t == len(...)` fall through so `p.eventConsumers[t]` / `p.customEventHandlers[t]` are indexed out of range, and the probe will still panic on the first unrecognized event ID above the current enum set; the same condition is re... | null |
DataDog__datadog-agent__48003 | DataDog/datadog-agent | 48,003 | defect | 15b3097d042b1e64e6ef68f6fca763a043e88453 | 128a28a846ab0d2bf2ad2bfd146b6a4437907afa | Final fix for the template | ### What does this PR do?
This changes makes the config conpatible with the incoming auto-generation for the config
### Describe how you validated your changes
Running the CI | diff --git a/pkg/config/config_template.yaml b/pkg/config/config_template.yaml
index a333ffff289e..a75a9b645370 100644
--- a/pkg/config/config_template.yaml
+++ b/pkg/config/config_template.yaml
@@ -8,17 +8,19 @@
## The Datadog API key used by your Agent to submit metrics and events to Datadog.
## Create a new API ke... | 6 | 4 | 1 | [{"id": "G0", "claim": "Re-annotating GUI_session_expiration as integer makes the generated schema/UI encourage raw numbers that the agent consumes via GetDuration() as nanoseconds, so GUI sessions would expire almost immediately for anyone following the new metadata; the field should stay typed as duration.", "categor... | null |
DataDog__datadog-agent__48064 | DataDog/datadog-agent | 48,064 | defect | d4fcc7f63e7421c4bd99372bf0d07cc09cc34835 | 366a05bf97ca02ad7d0b2c3b1915529a30fe8fdc | [WINA-2483] OS-aware default actions_allowlist for PAR config | ### What does this PR do?
When `DD_PRIVATE_ACTION_RUNNER_ENABLED=true` is set but `DD_PRIVATE_ACTION_RUNNER_ACTIONS_ALLOWLIST` is not provided, the installer was adding `com.datadoghq.script.runPredefinedScript` to any installation.
Now it will write an OS-appropriate default into `private_action_runner.actions_all... | diff --git a/pkg/fleet/installer/setup/common/setup.go b/pkg/fleet/installer/setup/common/setup.go
index 2bb5881ff4ea..0096ab0dcd48 100644
--- a/pkg/fleet/installer/setup/common/setup.go
+++ b/pkg/fleet/installer/setup/common/setup.go
@@ -29,6 +29,9 @@ import (
const (
commandTimeoutDuration = 10 * time.Second
con... | 1 | 1 | 1 | [{"id": "G0", "claim": "When DD_PRIVATE_ACTION_RUNNER_ENABLED=true but DD_PRIVATE_ACTION_RUNNER_ACTIONS_ALLOWLIST is unset, the installer now always populates ActionsAllowlist with the OS default, so rerunning the installer on a host with an existing custom private_action_runner.actions_allowlist silently overwrites it... | null |
DataDog__datadog-agent__48096 | DataDog/datadog-agent | 48,096 | defect | 8cd9f6abb159732a0991071e73cdfb250437159b | f2d3fb4f405297b2771784d5ca1da85f794cf608 | [testbench] Add reported events to headless output | When using `--verbose` flag in headless mode, we obtain anomalies with messages like we have for the report.
Without:
```json
{
"metadata": {
"scenario": "food_delivery_redis-onlylogs",
"timeline_start": 1773883148,
"timeline_end": 1773885057,
"detectors_enabled": [
"bocpd",
"r... | diff --git a/cmd/observer-testbench/README.md b/cmd/observer-testbench/README.md
index 7d14d5d0ebaf..c629920c03e7 100644
--- a/cmd/observer-testbench/README.md
+++ b/cmd/observer-testbench/README.md
@@ -133,6 +133,17 @@ my-scenarios/
"period_start": 1708201234,
"period_end": 1708201500
}
+ ],
+ "re... | 2 | 1 | 1 | [{"id": "G0", "claim": "Rebuilding reported events from the final CorrelationHistory() after replay means long-lived correlations get a single event built from the newest history entry, so headless output disagrees with what a live run would have sent on first sight.", "category": "correctness", "verdict": "uncertain",... | null |
DataDog__datadog-agent__48100 | DataDog/datadog-agent | 48,100 | defect | 3e13ad5b097784051fee4353280a5b93b9b0fdf2 | 0ccbd173a2e1b8a685cdfa372fdfac5d35580365 | [WINA-2483] Update config template to show OS-appropriate allowlist | ### What does this PR do?
Updates the `config_template.yaml` example for `private_action_runner.actions_allowlist` to show the OS-appropriate default action:
- Windows: com.datadoghq.script.runPredefinedPowershellScript
- Linux / macOS: com.datadoghq.script.runPredefinedScript
This affects the commented-out ref... | diff --git a/pkg/config/config_template.yaml b/pkg/config/config_template.yaml
index a333ffff289e..d7f566a4d62a 100644
--- a/pkg/config/config_template.yaml
+++ b/pkg/config/config_template.yaml
@@ -4836,5 +4836,9 @@ api_key:
# # for the list of available actions.
#
# actions_allowlist:
+{{ if eq .OS "windows" -... | 1 | 1 | 0 | [{"id": "G0", "claim": "The config template should show a single documentation and example per setting for actions_allowlist — listing both the Windows and the Linux/Darwin script actions with OS comments (or documenting the difference in the description/docs site) — instead of two OS-conditional template variants, to ... | null |
DataDog__datadog-agent__48131 | DataDog/datadog-agent | 48,131 | defect | 20fab6db8835ac0a5a4d71e61aecd4215d61c89d | 9d28daea0e043ff6e560b57dcdd101396a4ce913 | [ACTP] [PAR] Allow task inputs to override execution timeout | ### What does this PR do?
Adds a `TimeoutSeconds()` method on `Task` that reads a numeric `timeout` field from task inputs. The workflow executor now uses this per-task timeout when present, falling back to the config-level `TaskTimeoutSeconds` otherwise.
### Motivation
Some workflows may need a different execution ... | diff --git a/pkg/privateactionrunner/runners/workflow_executor.go b/pkg/privateactionrunner/runners/workflow_executor.go
index 3a820b52e9df..2a647b1bbb60 100644
--- a/pkg/privateactionrunner/runners/workflow_executor.go
+++ b/pkg/privateactionrunner/runners/workflow_executor.go
@@ -123,12 +123,16 @@ func (l *Loop) hand... | 1 | 1 | 1 | [{"id": "G0", "claim": "Casting inputs[\"timeout\"] directly to int32 can overflow or truncate out-of-range JSON numbers (e.g. 2147483648 becomes a negative value), and a negative timeout passed to CreateTimeoutContext is treated as no timeout, silently disabling the configured task deadline; TimeoutSeconds should reje... | null |
DataDog__datadog-agent__48284 | DataDog/datadog-agent | 48,284 | defect | 161a7a3487dbc9c8da2555b4f660f53d7c723b84 | 6b8cc8e2ea36ae743bd52ff7fa7f6613629e8ddf | [ACTP] Add testConnection action to HTTP bundle | ### Description
Add a `testConnection` action to the HTTP bundle (`com.datadoghq.http`) in the Private Action Runner that validates HTTP connections by making a request using the connection's testing configuration (path + verb) against its base URL.
**Changes:**
- New `TestConnectionHandler` in `bundles/http`
-... | diff --git a/pkg/privateactionrunner/adapters/config/constants.go b/pkg/privateactionrunner/adapters/config/constants.go
index 1b6b08f2059e..57733eb239f3 100644
--- a/pkg/privateactionrunner/adapters/config/constants.go
+++ b/pkg/privateactionrunner/adapters/config/constants.go
@@ -42,4 +42,5 @@ var BundleInheritedAllo... | 3 | 3 | 1 | [{"id": "G0", "claim": "The new `actionName != \"testConnection\"` guard disables the runner's URL allowlist check for `com.datadoghq.http.testConnection`, so a task can issue outbound HTTP requests to hosts not in `private_action_runner.http_allowlist` — a security/policy bypass, since test_connection.go builds the UR... | null |
DataDog__datadog-agent__48295 | DataDog/datadog-agent | 48,295 | defect | 4f567035ad7416d9524dc9e0671124c50f41e58d | a9102d8b71e5ca7d136813765b813b5e570374b0 | [observer] Add counters telemetry type | Adds counters as telemetry type and also changes type of log pattern telemetry to counter.
Adds:
- Counter support in the observer component
- UI updates to display telemetry data
- Log pattern telemetry is now a counter | diff --git a/cmd/observer-testbench/ui/src/api/client.ts b/cmd/observer-testbench/ui/src/api/client.ts
index a74d7579e3cc..f139921e7e46 100644
--- a/cmd/observer-testbench/ui/src/api/client.ts
+++ b/cmd/observer-testbench/ui/src/api/client.ts
@@ -72,6 +72,8 @@ export interface SeriesInfo {
pointCount: number;
/**... | 1 | 1 | 1 | [{"id": "G0", "claim": "Forcing every metricKind === 'counter' series to ':sum' in filteredSeries breaks anomaly linking in the testbench UI, because detectors are run with defaultAggregations (avg and count), so counter telemetry's sourceSeriesId values point to ':avg'/':count' and the filter removes the anomalous ser... | null |
DataDog__datadog-agent__48361 | DataDog/datadog-agent | 48,361 | defect | 2291ab537f99c5fa4419dde01c6f689d1913d630 | 22743f0d441d579682df1a677dd572138d87a408 | [observer] Add observer input telemetry / benchmark | Adds telemetry about number of metric samples / unique metrics / logs into the observer and updates testbench UI to display cost-per-item metrics and detector statistics.
Adds:
- Telemetry for input number
- Updated headless report
- UI components to display cost-per-item metrics and correlator information
- Som... | diff --git a/cmd/observer-testbench/ui/src/api/client.ts b/cmd/observer-testbench/ui/src/api/client.ts
index 2e15c1a4b593..9fe78fa28b1e 100644
--- a/cmd/observer-testbench/ui/src/api/client.ts
+++ b/cmd/observer-testbench/ui/src/api/client.ts
@@ -282,6 +282,7 @@ export interface ScoreResponse {
export interface Dete... | 2 | 2 | 0 | [{"id": "G0", "claim": "In rerunDetectorsLocked, the run should not append a second observer.input_metrics.count event carrying the full storage metricSamples total, because the accumulated per-timestamp deltas already recorded in loadParquetDir re-add the whole run total and inflate the stored counter (false end-of-ru... | null |
DataDog__datadog-agent__48419 | DataDog/datadog-agent | 48,419 | defect | 375094672ad4093bddea41bba8c6457e417c4f99 | 1afdd772c237e4f89ab54ddfde3858b5e55a25d0 | [auto-jira][AGENTCFG-98] use mux route template for request_duration_seconds path tag | ### What does this PR do?
Introduces a context-capture mechanism so the `api_server.request_duration_seconds` telemetry metric tags requests with the gorilla/mux **route template** (e.g. `/{component}/status`) instead of the raw request path.
Previously, path variables in routes like `/{component}/status` caused ... | diff --git a/comp/api/api/apiimpl/observability/telemetry.go b/comp/api/api/apiimpl/observability/telemetry.go
index d921895a35b1..e697745652a7 100644
--- a/comp/api/api/apiimpl/observability/telemetry.go
+++ b/comp/api/api/apiimpl/observability/telemetry.go
@@ -47,9 +47,17 @@ func (th *telemetryMiddlewareFactory) Midd... | 3 | 2 | 2 | [{"id": "G0", "claim": "The IPC server path (startIPCServer's http.ServeMux) never populates the route capture, so its requests all collapse to path=\"unknown\", losing per-endpoint telemetry that previously existed; asked to keep a fallback to extractPath(r) when no template was captured so non-mux handlers retain use... | null |
DataDog__datadog-agent__48481 | DataDog/datadog-agent | 48,481 | defect | bca962774d8a60ad21ae0c08da27a6299e8c9a3e | d70687cb16fd9dba3384336b77d0a1b65751cf99 | feat(trace): integrate semantics registry for gRPC status code lookup | ### What does this PR do?
Replaces the ad-hoc gRPC status code key scanning in `getGRPCStatusCode` with `semantics.LookupString` via `DDSpanAccessor`. Adds the two missing string-typed fallbacks (`rpc.grpc.status.code`, `grpc.status.code`) to `mappings.json`.
Note: the fallbacks use interleaved ordering (string t... | diff --git a/pkg/trace/semantics/mappings.json b/pkg/trace/semantics/mappings.json
index 98dec11c53b4..018ccfb74181 100644
--- a/pkg/trace/semantics/mappings.json
+++ b/pkg/trace/semantics/mappings.json
@@ -143,12 +143,14 @@
"rpc.grpc.status_code": {
"canonical": "rpc.grpc.status_code",
"fallbacks": ... | 3 | 3 | 3 | [{"id": "G0", "claim": "The pull request adds no test covering the cross-key meta-vs-metrics precedence (meta for any fallback key winning over metrics for any fallback key), so a case with a metrics value on an earlier key and a meta value on a later key should be added to catch accidental precedence changes.", "categ... | null |
DataDog__datadog-agent__48490 | DataDog/datadog-agent | 48,490 | defect | 2291ab537f99c5fa4419dde01c6f689d1913d630 | bf6967cabceed5247fd8622fe2d1e0be09f4c923 | [observer] Filter processed logs to improve memory | ### What does this PR do?
Adding log filtering to reduce memory footprint:
1. Only warn+ logs are processed
2. Don't emit metrics when there is less than 5 logs matching this pattern (since creating a metric takes memory in metrics detectors + storage)
3. (small refactoring for ClusterResult)
#### Benchmark
... | diff --git a/cmd/observer-testbench/main.go b/cmd/observer-testbench/main.go
index 1dfbe10a1f7d..c533ca7b231e 100644
--- a/cmd/observer-testbench/main.go
+++ b/cmd/observer-testbench/main.go
@@ -13,6 +13,7 @@ import (
"fmt"
"os"
"os/signal"
+ "runtime/pprof"
"strings"
"syscall"
@@ -34,9 +35,10 @@ type CLIPa... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new severity gate should also treat logs with Datadog statuses 'alert' and 'emergency' as eligible for clustering, since dropping them can hide the highest-severity incidents from the log pattern extractor metrics.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope... | null |
DataDog__datadog-agent__48570 | DataDog/datadog-agent | 48,570 | defect | 2291ab537f99c5fa4419dde01c6f689d1913d630 | 2109174c101c80225b160d4f1e1433b82a090439 | [observer] Optimize log pattern memory with garbage collection | Automatically evict old inactive clusters, which removes:
- Context keys
- Clusters
Adds:
- Garbage collection call to log pattern extractor
- Cluster removal from the clusterer
- Context key removal (extractor and engine level)
> [!NOTE]
> We will separately evict unused metrics in a future PR. | diff --git a/cmd/observer-testbench/main.go b/cmd/observer-testbench/main.go
index 1dfbe10a1f7d..c533ca7b231e 100644
--- a/cmd/observer-testbench/main.go
+++ b/cmd/observer-testbench/main.go
@@ -13,6 +13,7 @@ import (
"fmt"
"os"
"os/signal"
+ "runtime/pprof"
"strings"
"syscall"
@@ -34,9 +35,10 @@ type CLIPa... | 4 | 4 | 3 | [{"id": "G0", "claim": "maybeGarbageCollect decides staleness from time.Now() while clusters are stamped with ingested log timestamps, so in replay/backfill paths GC can evict patterns that are still active in replay time; GC should use the ingestion/replay event-time basis instead of wall-clock time for cutoff decisio... | null |
DataDog__datadog-agent__48579 | DataDog/datadog-agent | 48,579 | defect | f6711f30fcb8831419d24b642d347cbed069d78f | cf204e89442d351dab2722430eec083f83211a7d | [CONTP-1345] feat(clusteragent): improve error propagation in DCA tracing spans (1/6) |
### What does this PR do?
Improves error propagation in existing DCA tracing spans so that errors surface with full details (`error.message`, `error.type`, `error.stack`) in APM instead of just a boolean `error: true`.
Changes:
- **Telemetry wrapper** (`handler_telemetry.go`):
- `span.Finish()` now uses `tr... | diff --git a/pkg/clusteragent/api/handler_telemetry.go b/pkg/clusteragent/api/handler_telemetry.go
index 0630af842b2c..4758744b19eb 100644
--- a/pkg/clusteragent/api/handler_telemetry.go
+++ b/pkg/clusteragent/api/handler_telemetry.go
@@ -6,6 +6,7 @@
package api
import (
+ "fmt"
"net/http"
"strconv"
"time"
@@... | 1 | 1 | 1 | [{"id": "G0", "claim": "Wrapping recovered panics with fmt.Errorf(\"panic: %v\", p) erases the original panic type so tracer.WithError reports error.type as *errors.errorString for every panic; prefer passing through the recovered value when it is already an error and only formatting non-error panic values so APM keeps... | null |
DataDog__datadog-agent__48596 | DataDog/datadog-agent | 48,596 | defect | 3f2c64a26809947065059edfd7370971a92a019f | f091ab8e6af6069f25a476da586aac4af2e9c498 | [CONTP-1531] Migrate CSI driver check to be a core check | ### What does this PR do?
Migrates the `datadog_csi_driver` check from a Python OpenMetrics integration (in `integrations-core`) to a native Go core check.
**Changes:**
- **New Go core check** (`pkg/collector/corechecks/containers/csi_driver/`): Scrapes the CSI driver's Prometheus endpoint (`/metrics`) and sub... | diff --git a/cmd/agent/dist/conf.d/datadog_csi_driver.d/conf.yaml.default b/cmd/agent/dist/conf.d/datadog_csi_driver.d/conf.yaml.default
new file mode 100644
index 000000000000..e9dbe3eb9b39
--- /dev/null
+++ b/cmd/agent/dist/conf.d/datadog_csi_driver.d/conf.yaml.default
@@ -0,0 +1,5 @@
+ad_identifiers:
+ - csi-driver... | 1 | 1 | 1 | [{"id": "G0", "claim": "submitMetrics adds the full cumulative Prometheus counter value (sample.Value) into the COAT counters on every run instead of only the delta since the previous scrape, so agent-telemetry payloads for datadog_csi_driver.* will be inflated by check frequency; the check should store previous scrape... | null |
DataDog__datadog-agent__48625 | DataDog/datadog-agent | 48,625 | defect | 2e3b7123dc840fc506816201a12515d0f4d7dd47 | dabeeb0c8ac520df0e1f7b377563f1e7f04aff94 | [OTAGENT-826] converter auto-configures dogtel extension in standalone mode | ### What does this PR do?
When DD_OTEL_STANDALONE=true, the converter now automatically injects dogtel/dd-autoconfigured into the OTel collector config so users don't need to manually add the extension in standalone deployments.
### Motivation
[Standalone Dogtel Agent](http://docs.google.com/document/d/1JqX6qBUzF4... | diff --git a/comp/otelcol/converter/impl/autoconfigure.go b/comp/otelcol/converter/impl/autoconfigure.go
index 4303da345991..907c7455c36b 100644
--- a/comp/otelcol/converter/impl/autoconfigure.go
+++ b/comp/otelcol/converter/impl/autoconfigure.go
@@ -76,6 +76,12 @@ func (c *ddConverter) enhanceConfig(ctx context.Contex... | 1 | 1 | 1 | [{"id": "G0", "claim": "When standalone mode is enabled and service.extensions does not already reference dogtel, the auto-injection always adds a new dogtel/dd-autoconfigured entry with empty config instead of reusing a user-defined extensions.dogtel (or extensions.dogtel/<name>) definition, silently ignoring the user... | null |
DataDog__datadog-agent__48702 | DataDog/datadog-agent | 48,702 | defect | b0cdd1c2b49b3d5b3a05d11c33eb307d63fa1db9 | b457ed734a33d5bc80f6aabf39236fed976ad265 | Prevent infinite loop in removeSorted on murmur3 hash collision | ### What does this PR do?
Fixes a theoretically-possible infinite loop on murmur3 hash collisions. Unlikely because the code path is only used for non-deduped tag sets with more than 512 tags (and the infinite loop can only happen with a murmur3 hash collision)
#### Details
When two distinct tags share the sam... | diff --git a/pkg/tagset/hashing_tags_accumulator.go b/pkg/tagset/hashing_tags_accumulator.go
index 2f6792e982ec..9d1dacc5ba7a 100644
--- a/pkg/tagset/hashing_tags_accumulator.go
+++ b/pkg/tagset/hashing_tags_accumulator.go
@@ -158,7 +158,7 @@ func (h *HashingTagsAccumulator) removeSorted(o *HashingTagsAccumulator) {
... | 1 | 1 | 1 | [{"id": "G0", "claim": "When h.hash[i] == o.hash[j] but the strings differ, the new <= branch must advance j whenever h.data[i] > o.data[j], otherwise collided tags are not scanned for and removeSorted can leave a tag in o unremoved (e.g. h=[\"c\"] vs o=[\"a\",\"c\"] sharing a hash).", "category": "correctness", "verdi... | null |
DataDog__datadog-agent__48724 | DataDog/datadog-agent | 48,724 | defect | f6711f30fcb8831419d24b642d347cbed069d78f | 58a7384ae873b8d60916c3da562413a2b9a4ec54 | Register explicit defaults for OTLP ingest configuration keys | ### What does this PR do?
Migrates all `otlp_config.*` keys in `pkg/config/setup/otlp.go` from `BindEnv` to `BindEnvAndSetDefault`, registering explicit default values that match the upstream OpenTelemetry Collector v0.147.0 defaults. Also updates the filtering logic in `configcheck` so that only user-configured val... | diff --git a/comp/otelcol/otlp/config_test.go b/comp/otelcol/otlp/config_test.go
index d25742f81de0..185ac6d7ab94 100644
--- a/comp/otelcol/otlp/config_test.go
+++ b/comp/otelcol/otlp/config_test.go
@@ -61,26 +61,15 @@ func TestFromAgentConfigReceiver(t *testing.T) {
TracesEnabled: true,
LogsEn... | 2 | 1 | 1 | [{"id": "G0", "claim": "After this change the documented env var DD_OTLP_CONFIG_METRICS_TAG_CARDINALITY no longer overrides otlp_config.metrics.tag_cardinality, because the replacement binding registers only the explicit legacy name DD_OTLP_TAG_CARDINALITY, so deployments using the documented var silently fall back to ... | null |
DataDog__datadog-agent__48758 | DataDog/datadog-agent | 48,758 | defect | 4b725e9a2d3d8529041f00e7e044b899eec2e134 | ae79d156736b0eeb8a02c161f7e33b448636359c | [EBPF-1051] gpu: add spec tag validation | ### What does this PR do?
Adds improved defintions to tag specifications, so that we can validate both the live metrics and the metrics emitted from the GPU check.
### Motivation
Ensure that we emit the tags correctly as we expect.
### Describe how you validated your changes
Changes are in test code, Pyt... | diff --git a/pkg/collector/corechecks/gpu/gpu_test.go b/pkg/collector/corechecks/gpu/gpu_test.go
index eef4867a72fe..9561899018a8 100644
--- a/pkg/collector/corechecks/gpu/gpu_test.go
+++ b/pkg/collector/corechecks/gpu/gpu_test.go
@@ -836,19 +836,17 @@ func TestMetricsFollowSpec(t *testing.T) {
// - NVML required to ... | 3 | 3 | 2 | [{"id": "G0", "claim": "Appending a synthetic MetricObservation that contains only gpu_* tags makes validateMetricTagsAgainstSpec treat it as a full sample, so required non-gpu_ tags (e.g. pid/nspid) are counted missing and live validation can report failures for healthy metrics.", "category": "correctness", "verdict":... | null |
DataDog__datadog-agent__48810 | DataDog/datadog-agent | 48,810 | defect | ea44722111c9985d57f866e2742b5f43ccb1a785 | 26e1ef1fb74fd095c049d0b17d8fe9ef3cd9c200 | [CWS] Add source origin and created_at to cgroup/container context | Introduce ContainerSource and CGroupSource types to track whether a cgroup/container entry was populated from a kernel event or a procfs fallback. Both sources are set on CGroupContext and ContainerContext at resolution time (resolveAndPushNewCacheEntry and resolveFromFallback).
Also expose created_at on CGroupConte... | diff --git a/docs/cloud-workload-security/backend_linux.md b/docs/cloud-workload-security/backend_linux.md
index 154bba4eb58d..1b9507d49c7c 100644
--- a/docs/cloud-workload-security/backend_linux.md
+++ b/docs/cloud-workload-security/backend_linux.md
@@ -228,6 +228,15 @@ Workload Protection events for Linux systems hav... | 1 | 1 | 1 | [{"id": "G0", "claim": "resolveAndPushNewCacheEntry stamps CreatedAt but never assigns cgroupContext.CGroupSource, so entries created from normal fork/exec resolution keep the zero value (unknown) and the new cgroup.source metadata is inaccurate for the main event-driven path; it should set cgroupContext.CGroupSource =... | null |
DataDog__datadog-agent__48818 | DataDog/datadog-agent | 48,818 | defect | ec07bee77bc3d422690aa1b123549b5427f1d8a3 | 43e5bf07b9de670d259c6b537529eb966a5eb713 | Refacto trace agent obfuscation config and add span obfuscation tests | ### What does this PR do?
- add the same span obfuscation tests as those from libdatadog's obfuscation (minus tag_replacement tests because it's not handled in the same place for the agent)
- adds json tag for easier testing from [my external parity tester tool](https://github.com/DataDog/obfuscation-parity-tester/tr... | diff --git a/pkg/obfuscate/memcached_test.go b/pkg/obfuscate/memcached_test.go
index 94fb5187cb22..a039871cbe52 100644
--- a/pkg/obfuscate/memcached_test.go
+++ b/pkg/obfuscate/memcached_test.go
@@ -61,6 +61,11 @@ func TestObfuscateMemcachedKeepCommand(t *testing.T) {
"",
false,
},
+ {
+ "ჸ", // this is i... | 2 | 2 | 2 | [{"id": "G0", "claim": "Replacing the a.obfuscateSpan(span) call in Process with a.obfuscateSpanInternal(&obfuscateSpanV0{span: span}) bypasses Agent.ObfuscateSpan, the only path that iterates span.SpanEvents and redacts credit-card-like values, so sensitive values in span events of v0 payloads are no longer obfuscated... | null |
DataDog__datadog-agent__48827 | DataDog/datadog-agent | 48,827 | defect | eb9c1664aa7b31fba391b66acf2f74615bff0c40 | 3fa9528357c27e7511183a8c32a9ccf5c911e616 | Analyze dumps in Test VMs after a WER or Kernel crash | ### What does this PR do?
This PR adds functions to BeforeTest and AfterTest in windows e2e tests to setup and run `cdb.exe` to analyze WER and Kernel dump files in the test VM. The analyzed dumps will be printed in the test logs and also be added to the test artifacts.
### Motivation
https://datadoghq.atlassian.n... | diff --git a/test/new-e2e/tests/windows/common/debugger.go b/test/new-e2e/tests/windows/common/debugger.go
new file mode 100644
index 000000000000..ef5ced120a4e
--- /dev/null
+++ b/test/new-e2e/tests/windows/common/debugger.go
@@ -0,0 +1,172 @@
+// Unless explicitly stated otherwise all files in this repository are lic... | 1 | 1 | 1 | [{"id": "G0", "claim": "AnalyzeDump always invokes cdb with .symfix, which resets the symbol path to the default Microsoft server and drops the Datadog symbol server configured by SetupCdb, leaving Datadog driver frames unresolved in crash dumps; the reviewer asks to remove .symfix or replace it with an explicit symbol... | null |
DataDog__datadog-agent__48890 | DataDog/datadog-agent | 48,890 | defect | 6a052b92c29529cbaf68c824215c9f9fb93174fd | 75c11bb9d3cf723da832b3d391282d2f964f1cbe | [NCM] Add zstd compression, use SHA-256 hash to dedupe | ### What does this PR do?
https://datadoghq.atlassian.net/browse/NDINT-501
**references**
* [RFC sub-section: compression at rest](https://datadoghq.atlassian.net/wiki/spaces/II/pages/6327238940/RFC+UI-Initiated+Configuration+Rollback+via+Agent-Local+Raw+Configs#Compression-at-rest)
* [RFC sub-section: deduplicat... | diff --git a/pkg/networkconfigmanagement/store/store.go b/pkg/networkconfigmanagement/store/store.go
index 41a1bda1c0a0..f9b3c63f8c2d 100644
--- a/pkg/networkconfigmanagement/store/store.go
+++ b/pkg/networkconfigmanagement/store/store.go
@@ -20,6 +20,8 @@ import (
"github.com/google/uuid"
"go.etcd.io/bbolt"
+ "g... | 3 | 2 | 2 | [{"id": "G0", "claim": "GetConfig now unconditionally calls cs.compressor.Decompress on stored raw configs and blocks, so records written by previous versions as plain JSON bytes will fail decompression and become unreadable after an upgrade; a storage format marker or a direct-JSON fallback path should be added.", "ca... | null |
DataDog__datadog-agent__48926 | DataDog/datadog-agent | 48,926 | defect | be33ac1490c4a34602cbc65a211406b73ad6d00b | a562a9317f302d74446757173b71147d87e2069a | [auto-jira][AGENTCFG-74] rework collector status provider to use check.GetMetadata directly | ## What does this PR do?
Refactors `pkg/status/collector/status.go` to read check metadata directly from the collector component via `check.GetMetadata()` and `collector.Component.MapOverChecks()`, instead of relying on the `inventories` expvar published at runtime by the `inventorychecks` component.
Key changes:
- `... | diff --git a/comp/collector/collector/collectorimpl/collector.go b/comp/collector/collector/collectorimpl/collector.go
index 00e47226b5af..91813be72cb9 100644
--- a/comp/collector/collector/collectorimpl/collector.go
+++ b/comp/collector/collector/collectorimpl/collector.go
@@ -118,7 +118,7 @@ func newProvides(deps dep... | 1 | 1 | 1 | [{"id": "G0", "claim": "Switching collectCheckMetadata to check.GetMetadata alone drops per-instance metadata that checks publish via inventorychecks.Set (e.g. Python set_check_metadata, systemd's version.raw), silently removing user-visible metadata from agent status/flare output whenever the collector is wired.", "ca... | null |
DataDog__datadog-agent__48927 | DataDog/datadog-agent | 48,927 | defect | be33ac1490c4a34602cbc65a211406b73ad6d00b | f2b396b02128e81fa15ae8c93053ddb192d9d782 | [AGENTCFG-71] Improve flare local file: add creation time, build info, and diagnose timeout | ## What does this PR do?
Enriches the `local` file written during a local flare (when the agent is unreachable) with diagnostic information:
- **Flare creation time** (UTC, RFC3339 format)
- **Go version** from `runtime/debug.ReadBuildInfo()`
- **VCS fields** (`vcs.revision`, `vcs.time`, `vcs.modified`) from build set... | diff --git a/cmd/agent/subcommands/flare/command.go b/cmd/agent/subcommands/flare/command.go
index e0e8a9dae3c0..82765d504fbd 100644
--- a/cmd/agent/subcommands/flare/command.go
+++ b/cmd/agent/subcommands/flare/command.go
@@ -376,6 +376,12 @@ func createArchive(flareComp flare.Component, pdata flaretypes.ProfileData, ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The 30s local diagnose timeout may not be enough; raise it to 1min to lean on the safer side.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
DataDog__datadog-agent__48947 | DataDog/datadog-agent | 48,947 | defect | 00ba578652ac4cf427d31e4fa144d79c16cac8d2 | 031cbb25013ad88eebc463e9705fc8ce612a3f6e | [EBPF-1051] gpu: use NVML collector in GPU metric generation tests | ### What does this PR do?
Adds new code so that the NVML collector in workloadmeta and the workloadmeta tag extractor function can be used in external test packages. The new functions are used in the GPU tests that ensure that the check emits metrics according to the specification.
### Motivation
Eliminate divergenc... | diff --git a/comp/core/tagger/collectors/workloadmeta_extract.go b/comp/core/tagger/collectors/workloadmeta_extract.go
index 64a6e45cb34c..e4687a6c6080 100644
--- a/comp/core/tagger/collectors/workloadmeta_extract.go
+++ b/comp/core/tagger/collectors/workloadmeta_extract.go
@@ -321,7 +321,7 @@ func (c *WorkloadMetaColl... | 2 | 2 | 2 | [{"id": "G0", "claim": "In MIG mode the new require.Len(t, wmetaGpus, 1, ...) assertion fails because the NVML workloadmeta collector publishes all cached devices (parent plus MIG children), making TestMetricsFollowSpec fail before metric/tag validation.", "category": "correctness", "verdict": "supported", "priority": ... | null |
DataDog__datadog-agent__48984 | DataDog/datadog-agent | 48,984 | defect | 19fea94032c922bff1a6e5f85ca8258ed77897d4 | 0e5d1dc8f16bd80671066fc78bca9cf072130eda | [NXDOMAIN] Fix missing resolv.conf data for absolute path symlinks | ### What does this PR do?
This PR fixes an issue where the resolv.conf would be reported as `<missing>` when in actuality it is an absolute path symlink to something like `/run/systemd/resolve/resolv.conf`.
### Motivation
Increase coverage of resolv.conf data for the 7.78 release.
### Describe how you validated... | diff --git a/pkg/network/containers/container_item_linux.go b/pkg/network/containers/container_item_linux.go
index d6b0bdbb3f19..45669b92636b 100644
--- a/pkg/network/containers/container_item_linux.go
+++ b/pkg/network/containers/container_item_linux.go
@@ -15,13 +15,13 @@ import (
"fmt"
"io"
"os"
- "path/filepa... | 1 | 1 | 1 | [{"id": "G0", "claim": "openat2Available() returns true for any error except ENOSYS, so on runtimes where seccomp blocks openat2 (typically EPERM) NewContainerStore enables the feature but every openResolvConf call fails and container resolv.conf data is never collected, a regression from the previous os.Open behavior;... | null |
DataDog__datadog-agent__49021 | DataDog/datadog-agent | 49,021 | defect | fd901125360e6fb2c3b12014a0f54bcdf5c67382 | 849aa29b26d311c84e6fc74f193d377035ebb7a8 | Read datadog.yaml config variable when creating cmd | ### What does this PR do?
This PR read the datadog.yaml installer configuration during the creation of the installer commands to override environment variable if set in the configuration.
### Motivation
Installing ddot extension with DD_INSTALLER_REGISTRY_URL (for instance) env variable didn't have the same ef... | diff --git a/pkg/fleet/installer/commands/BUILD.bazel b/pkg/fleet/installer/commands/BUILD.bazel
index 27654512502d..e867f1e81ba3 100644
--- a/pkg/fleet/installer/commands/BUILD.bazel
+++ b/pkg/fleet/installer/commands/BUILD.bazel
@@ -49,13 +49,9 @@ go_test(
deps = [
"//pkg/fleet/installer/env",
... | 1 | 1 | 1 | [{"id": "G0", "claim": "Promoting DD_INSTALLER_REGISTRY_URL_AGENT_PACKAGE into the global RegistryOverride can redirect commands that download non-agent packages to the agent registry and fail or pull the wrong artifact; the package-specific override should stay scoped to RegistryOverrideByImage[\"agent-package\"] and ... | null |
DataDog__datadog-agent__49033 | DataDog/datadog-agent | 49,033 | defect | a6bdb5d66434159a37aa79da4c8bda2b3d785233 | 2879310aeb50b6533f68caa82504e23ef7d2be19 | [EBPF-1051] gpu: validate metric values as part of the specification | ### What does this PR do?
Updates the metric validation code to ensure that the metric values are also checked against valid pre-defined ranges.
### Motivation
Ensure that we have no extreme values being emitted in unit tests or in live data.
### Describe how you validated your changes
Unit tests passing, manually... | diff --git a/pkg/collector/corechecks/gpu/spec/gpu_metrics.yaml b/pkg/collector/corechecks/gpu/spec/gpu_metrics.yaml
index 6c3308380c3d..4ed079377fed 100644
--- a/pkg/collector/corechecks/gpu/spec/gpu_metrics.yaml
+++ b/pkg/collector/corechecks/gpu/spec/gpu_metrics.yaml
@@ -107,6 +107,8 @@ metrics:
clock.throttle_re... | 2 | 2 | 1 | [{"id": "G0", "claim": "When queryMinMax is enabled, validating only the min and max series extrema misses invalid intermediate values for discrete allowed-value metrics (e.g. allowed [0,1] with an emitted 0.5), making the new value validation incomplete and prone to false negatives.", "category": "correctness", "verdi... | null |
DataDog__datadog-agent__49051 | DataDog/datadog-agent | 49,051 | defect | 273c0b63ad979e12a3c0f671167542fe6f2ae316 | 70ffd43c249af34c0afb328f2f7efc1bb91c8dac | [ACTP] Make app key optional for agent PAR enablement | ### What does this PR do?
This makes the `DD_APP_KEY` optional for PAR enrollment. This also skips connection creation when just an API key is given, since we will be using execution groups going forward.
The backend rejects API-key-only PAR enrollment with a 401 for now, which is expected. Once we modify OPMS to s... | diff --git a/comp/privateactionrunner/impl/privateactionrunner.go b/comp/privateactionrunner/impl/privateactionrunner.go
index 0367ea10c38f..f8945e7cf2c0 100644
--- a/comp/privateactionrunner/impl/privateactionrunner.go
+++ b/comp/privateactionrunner/impl/privateactionrunner.go
@@ -256,10 +256,12 @@ func (p *PrivateAct... | 3 | 3 | 1 | [{"id": "G0", "claim": "The new config test does not seem related to an optional app-key and tests nothing beyond Go serialization; the reviewer questions its value.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The release note file should be named wi... | null |
DataDog__datadog-agent__49262 | DataDog/datadog-agent | 49,262 | defect | 3693e6e0d6224fd3fb05950c05bfd58a011e290c | e3b4162596797c2bbabac0e81b550a7adcc00736 | NDMC-285: Retry GetBulk with smaller batches when response has fewer varbinds t… | ### What does this PR do?
Detects GetBulk response truncation in the SNMP column fetch path and triggers automatic batch size reduction via the existing oidBatchSizeOptimizer.
When a device returns fewer varbinds than the number of requested OIDs in a GetBulk response, the new guard in getResults() returns a fetc... | diff --git a/pkg/collector/corechecks/snmp/internal/fetch/fetch_column.go b/pkg/collector/corechecks/snmp/internal/fetch/fetch_column.go
index a9fc088ed4f1..2587405c04bc 100644
--- a/pkg/collector/corechecks/snmp/internal/fetch/fetch_column.go
+++ b/pkg/collector/corechecks/snmp/internal/fetch/fetch_column.go
@@ -128,6... | 2 | 1 | 1 | [{"id": "G0", "claim": "The log.Debug on the new truncation fetch error is unnecessary and should be removed so the error bubbles up and is logged by the devicecheck.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A test should also be added for t... | null |
DataDog__datadog-agent__49326 | DataDog/datadog-agent | 49,326 | defect | 3ba93e3993f5dfa7da0b5f0d59b1564fa55ecb08 | c895c311781d36c98b3598cf642a394e13f6ee7f | [EBPF] gpu: add workload_only marker in metric specification | ### What does this PR do?
Adds a `workload_only` marker to tagsets and metrics, allowing the specification validation to understand which metrics can be missing when there is no workload running.
### Motivation
The integration tests on real GPUs do not have workloads, and in live validation some hosts don't have wor... | diff --git a/pkg/collector/corechecks/gpu/gpu_test.go b/pkg/collector/corechecks/gpu/gpu_test.go
index eef4867a72fe..b44fbdb577fb 100644
--- a/pkg/collector/corechecks/gpu/gpu_test.go
+++ b/pkg/collector/corechecks/gpu/gpu_test.go
@@ -848,7 +848,10 @@ func TestMetricsFollowSpec(t *testing.T) {
t.Run(testName, func(t... | 3 | 2 | 1 | [{"id": "G0", "claim": "Hardcoding WorkloadActive: true in the live GPU metrics validator means the new workload_only metric/tagset markers never relax validation for idle GPUs, so hosts with no running workload are still reported as missing process.* metrics, defeating the intended no-workload behavior in live validat... | null |
DataDog__datadog-agent__49391 | DataDog/datadog-agent | 49,391 | defect | 44945a8860c646f44fac8f18df259a81b34d2876 | 6a4ab2f84aadecb5962189a37647fb642245f430 | [EBPF-1093] gpu: add nvlink5 PLR counters | ### What does this PR do?
Adds PLR counters for NVLink5 cards.
### Motivation
Coverage of NVLink5 related metrics.
### Describe how you validated your changes
Specification updated, tested in NVLInk5-enabled instance.
### Additional Notes
| diff --git a/pkg/collector/corechecks/gpu/gpu_test.go b/pkg/collector/corechecks/gpu/gpu_test.go
index 19abe1638b81..c5ed9a7cd5d3 100644
--- a/pkg/collector/corechecks/gpu/gpu_test.go
+++ b/pkg/collector/corechecks/gpu/gpu_test.go
@@ -235,7 +235,7 @@ func TestRunDoesNotError(t *testing.T) {
func TestCollectorsOnDevi... | 3 | 1 | 0 | [{"id": "G0", "claim": "readPortCounters unpacks prm.InData (the request buffer) instead of prm.OutData after ReadWritePRM_v1, so on real NVML calls the new nvlink.plr.* metrics may be decoded from the request payload and emitted as incorrect constant values; it should parse prm.OutData (and ideally the returned size/s... | null |
DataDog__datadog-agent__49407 | DataDog/datadog-agent | 49,407 | defect | 4b725e9a2d3d8529041f00e7e044b899eec2e134 | c20f9c24764fcb12e1866380e4f079899f79666e | [CONTINT-5287] Process kubeactions async | ### What does this PR do?
Updates the actionsCallback in the kubeactions config retriever to process each action in its own goroutine, so actions are no longer blocked by a slow predecessor.
- Adds `ClaimedAt` timestamp to ActionRecord, set at claim time, indicating that a goroutine has picked up this action/config... | diff --git a/pkg/clusteragent/kubeactions/action_store.go b/pkg/clusteragent/kubeactions/action_store.go
index ed1ecad6fdbb..c9c597c2ef26 100644
--- a/pkg/clusteragent/kubeactions/action_store.go
+++ b/pkg/clusteragent/kubeactions/action_store.go
@@ -48,6 +48,7 @@ type ActionRecord struct {
ExecutedAt int64 // U... | 3 | 3 | 2 | [{"id": "G0", "claim": "Process should keep the old idempotent handling — duplicates with a non-failure prior status should stay a no-op, returning an error only for statuses like failed/expired — instead of returning an error for every failed Claim.", "category": "correctness", "verdict": "supported", "priority": "P1"... | null |
DataDog__datadog-agent__49408 | DataDog/datadog-agent | 49,408 | defect | 0a28888619300afd42ac4c7febe9b4985b725552 | c3d69f3910c6ea3093e9fc5e74a4b7143018c631 | [OTAGENT-987] Add datadog-agent otel install command | ### What does this PR do?
Adds a datadog-agent otel subcommand group with install and remove commands for managing DDOT installation from an OCI package.
```
# Install DDOT using the default Datadog registry (version inferred from installed agent) ... | diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index a63b4361537c..3e0de1fc404c 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -204,6 +204,7 @@
/cmd/ @DataDog/agent-configuration
/cmd/trace-agent/ @DataDog/agent-apm
/cmd/agent/subcommands/con... | 7 | 6 | 1 | [{"id": "G0", "claim": "On Windows resolveInstallerBinPath looks for <agent root>/embedded/bin/installer.exe, but the Agent package ships the helper as datadog-installer.exe in the install root, so 'datadog-agent extension install/remove' fails with 'installer binary not found' on Windows even for valid Datadog-install... | null |
DataDog__datadog-agent__49489 | DataDog/datadog-agent | 49,489 | defect | 141f12062790e3dad23eb89c0bab3d3554851bda | f56c8e5ceda08c7cac8e5bd5f3c082ef18320287 | [AGNTLOG-586] Add per source switch for adaptive sampling | ### What does this PR do?
Adds on/off configuration for adaptive sampling for individual sources.
### Motivation
Allows finer grained control of the adaptive sampling feature.
### Describe how you validated your changes
Unit testing. Also created a harness to validate behavior. The harness:
1. Creates... | diff --git a/comp/logs/agent/config/integration_config.go b/comp/logs/agent/config/integration_config.go
index dca63f5bc358..dca4f3a569ad 100644
--- a/comp/logs/agent/config/integration_config.go
+++ b/comp/logs/agent/config/integration_config.go
@@ -106,6 +106,9 @@ type LogsConfig struct {
// AutoMultiLineOptions pr... | 2 | 2 | 1 | [{"id": "G0", "claim": "Container/pod launchers rebuild LogsConfig for derived file sources without copying the new ExperimentalAdaptiveSampling field, so Docker/Kubernetes sources with per-source experimental_adaptive_sampling.enabled silently fall back to the global setting and the per-source switch does not work for... | null |
DataDog__datadog-agent__49525 | DataDog/datadog-agent | 49,525 | defect | d0fef680de5c523cd03fbbf06ba393fa3e7f4491 | 9712a83311adb1b0bd985abe28f7abb4fd86a0b5 | Fix user filters silently dropped in end_user_device mode | ### What does this PR do?
Fixes `applyInfrastructureModeOverrides` silently dropping user-defined `network_path.collector.filters` when `infrastructure_mode: end_user_device` is set.
### Motivation
https://datadoghq.atlassian.net/browse/WINA-2593
### Describe how you validated your changes
Added `TestNe... | diff --git a/pkg/config/setup/config.go b/pkg/config/setup/config.go
index badc155ee60b..ea801a43e708 100644
--- a/pkg/config/setup/config.go
+++ b/pkg/config/setup/config.go
@@ -1425,22 +1425,12 @@ func applyInfrastructureModeOverrides(config pkgconfigmodel.Config) {
{"match_domain": "claude.ai", "type": "include"... | 1 | 1 | 1 | [{"id": "G0", "claim": "When UnmarshalKey fails on network_path.collector.filters, the code still Sets the config key to the EUDM defaults, silently discarding the user's config; the reviewer asks whether on error it should keep the defaults and discard the rest, or not Set anything at all.", "category": "correctness",... | null |
DataDog__datadog-agent__49545 | DataDog/datadog-agent | 49,545 | defect | a394c1ddcb26c478c30c24c7701f18f2550d646e | f9357cfbd8c022059c1b5457fda9534e4e515eb0 | APM: Trace V1 Conversion logic should prefer root span sampling priority | ### What does this PR do?
Found a small bug where if a single tracechunk had both user keep and user drop set then the v1 converter would just use "last span wins" which differs from the previous behavior. This caused a breakage in our tests for ASM Standalone in Go where this is possible.
### Motivation
While hav... | diff --git a/pkg/proto/pbgo/trace/convert_test.go b/pkg/proto/pbgo/trace/convert_test.go
index fc9092950995..e165bb75cd0e 100644
--- a/pkg/proto/pbgo/trace/convert_test.go
+++ b/pkg/proto/pbgo/trace/convert_test.go
@@ -374,3 +374,64 @@ func TestConvertedTracePayload(t *testing.T) {
assert.True(t, found)
assert.Equa... | 1 | 1 | 1 | [{"id": "G0", "claim": "ReconcileSamplingPriorityAfterChunkSpan treats every parent_id == 0 span as authoritative even when the root span never set _sampling_priority_v1, so a root without the metric pins the chunk back to the math.MinInt8/PriorityNone sentinel and drops a child's sampling priority (notably on v04/v05 ... | null |
DataDog__datadog-agent__49548 | DataDog/datadog-agent | 49,548 | defect | a394c1ddcb26c478c30c24c7701f18f2550d646e | 5b125760d122bfc735ed7586c876268e3c98b410 | [FA] [Q] Mini tracer: propagate service and sampling priority | Propagate service name and sampling priority through the lightweight tracer:
- Via `context.Context` (`WithService`, `WithSamplingPriority`)
- Across processes via `DATADOG_SERVICE` / `DATADOG_SAMPLING_PRIORITY` env vars
Goal: use this tracer in https://github.com/DataDog/rshell.
Tests written by AI. | diff --git a/pkg/fleet/installer/telemetry/span.go b/pkg/fleet/installer/telemetry/span.go
index c0fc85c44100..e9617f2ae838 100644
--- a/pkg/fleet/installer/telemetry/span.go
+++ b/pkg/fleet/installer/telemetry/span.go
@@ -31,13 +31,22 @@ type Span struct {
finished atomic.Bool
}
-func newSpan(name string, parentI... | 2 | 2 | 2 | [{"id": "G0", "claim": "When a root span is started from context with an explicitly set keep sampling priority (1 or 2) and no incoming trace ID, newSpan still applies headSamplingKeep first and may set traceID to dropTraceID, making explicit keep priorities ineffective for spans whose names match configured head-sampl... | null |
DataDog__datadog-agent__49576 | DataDog/datadog-agent | 49,576 | defect | aa33767ed35572686b9125e31acaa4c1dfeab3b1 | 14271cca5c54358cd23714170def2a2b2781b3cc | [observer] Improve log anomaly reports | ### What does this PR do?
- Compares previous log rate and displays it if there is a noticeable change
- Truncate 120 -> 160 chars for the log example
<img width="1313" height="253" alt="Screenshot 2026-04-20 at 10 32 37" src="https://github.com/user-attachments/assets/cda37f93-502c-4b4d-9609-2d3c571e2f4b" />
... | diff --git a/comp/observer/impl/engine.go b/comp/observer/impl/engine.go
index 44aa6ec7a51a..d072575283ea 100644
--- a/comp/observer/impl/engine.go
+++ b/comp/observer/impl/engine.go
@@ -522,7 +522,7 @@ func (e *engine) enrichAnomaly(a *observerdef.Anomaly) {
}
a.Context = &observerdef.MetricContext{
Pattern: ... | 1 | 1 | 1 | [{"id": "G0", "claim": "logPatternPrevRate always returns ok=true whenever SourceRef and storage are present, even when the [-6m,-1m] baseline window has no samples, so early anomalies (for example during the first few minutes after startup/reset) are rendered as a rate rise/drop from 0.0log/s rather than as no baselin... | null |
DataDog__datadog-agent__49592 | DataDog/datadog-agent | 49,592 | defect | d0fef680de5c523cd03fbbf06ba393fa3e7f4491 | 2ba6071aeca5d04448349b2b2ef60975f3cdc99d | [EBPF] gpu: add task to update integrations-core metadata |
### What does this PR do?
Creates a new task gpu.update-metadata that updates automatically the `metadata.csv` file in integrations-core, with the list of all metrics emitted from the agent.
### Motivation
Single source of truth for GPU metrics.
### Describe how you validated your changes
Unit test for... | diff --git a/pkg/collector/corechecks/gpu/spec/gpu_metrics.yaml b/pkg/collector/corechecks/gpu/spec/gpu_metrics.yaml
index 7bff5001c2c8..a42e39bc85d5 100644
--- a/pkg/collector/corechecks/gpu/spec/gpu_metrics.yaml
+++ b/pkg/collector/corechecks/gpu/spec/gpu_metrics.yaml
@@ -2,6 +2,10 @@
# Schema:
# - metric_prefix: s... | 3 | 2 | 2 | [{"id": "G0", "claim": "When the task runs against an existing metadata.csv containing rows no longer present in gpu_metrics.yaml, those stale rows are kept in the generated metadata, so the output does not match the agent's emitted metric set; the reviewer asked that the output be rebuilt from the spec or that non-spe... | null |
DataDog__datadog-api-client-java__1925 | DataDog/datadog-api-client-java | 1,925 | defect | 6115783e5a01cc88f1958ae20df691d6050846fa | e35b2755a8b7f3ce200394c6ef6a7b4af1def8cc | Add retry support | ### What does this PR do?
Adds retry support and corresponding config options.
<!--
What inspired you to submit this pull request?
Link to the issue describing the bug that you're fixing.
If there is not yet an issue for your bug, please open a new issue and then link to that issue in your pull request.
... | diff --git a/.generator/src/generator/cli.py b/.generator/src/generator/cli.py
index d3f91d0a70b..f5792cc7e74 100644
--- a/.generator/src/generator/cli.py
+++ b/.generator/src/generator/cli.py
@@ -87,6 +87,7 @@ def cli(specs, output):
"PaginationIterator.java": env.get_template("PaginationIterator.j2"),
... | 8 | 7 | 2 | [{"id": "G0", "claim": "The retry interval helper is misspelled calculateRetryIntrval and should be calculateRetryInterval.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer questions what the catch (InterruptedException) block around ... | null |
DataDog__datadog-lambda-go__116 | DataDog/datadog-lambda-go | 116 | defect | bf8b37f788f9a0c29f5fe10cf3ba2e9c0740cf54 | 2b2351b8b33db5c23eafd4a4a1c93481b59419d5 | [SLS-2330] Add support for universal instrumentation with the extension | <!--- Please remember to review the [contribution guidelines](https://github.com/DataDog/datadog-lambda-go/blob/main/CONTRIBUTING.md) if you have not yet done so._ --->
### What does this PR do?
<!--- A brief description of the change being made with this pull request. --->
Extends the DD extension functionalit... | diff --git a/ddlambda.go b/ddlambda.go
index d07b9d18..7ad61936 100644
--- a/ddlambda.go
+++ b/ddlambda.go
@@ -89,6 +89,8 @@ const (
DatadogTraceEnabledEnvVar = "DD_TRACE_ENABLED"
// MergeXrayTracesEnvVar is the environment variable that enables the merging of X-Ray and Datadog traces.
MergeXrayTracesEnvVar = "DD... | 8 | 6 | 1 | [{"id": "G0", "claim": "It might be nice to debug-log when ParseBool fails on the instrumentation env vars (here and the two above), so customers can figure out why their instrumentation is not working.", "category": "observability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim"... | null |
DataDog__datadog-lambda-go__151 | DataDog/datadog-lambda-go | 151 | defect | 42c6f6b5b115b1363df784ad23cd1d54b291b4f1 | 45ecf0ed1655fd11bb2e2eff635cfd572c11a381 | feat: enable universal instrumentation by default | <!--- Please remember to review the [contribution guidelines](https://github.com/DataDog/datadog-lambda-go/blob/main/CONTRIBUTING.md) if you have not yet done so._ --->
### What does this PR do?
Enabled universal instrumentation and tracing by default.
Honors environment variable if set.
![Screenshot 202... | diff --git a/ddlambda.go b/ddlambda.go
index 1782bcb2..0ac49c62 100644
--- a/ddlambda.go
+++ b/ddlambda.go
@@ -202,9 +202,9 @@ func InvokeDryRun(callback func(ctx context.Context), cfg *Config) (interface{},
func (cfg *Config) toTraceConfig() trace.Config {
traceConfig := trace.Config{
- DDTraceEnabled: ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new environment-variable setup in TestInvokeDryRun should use t.Setenv instead of os.Setenv/os.Unsetenv, since t.Setenv automatically cleans up after itself.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
DataDog__datadog-lambda-go__199 | DataDog/datadog-lambda-go | 199 | defect | 77ce8c5ed03c4101b9c6d3ab419f849bd5cb0002 | cf8b8479ef1e84197bf923aa751d054facb8b46f | feat: DD_LAMBDA_FIPS_MODE handling for metrics | ### What does this PR do?
Correctly handles the `DD_LAMBDA_FIPS_MODE` control, same as we do in the python and js layers.
We no longer support direct Datadog API metric submission when `DD_LAMBDA_FIPS_MODE` is enabled. This setting is enabled by default in govcloud. Various mechanisms are provided to override thi... | diff --git a/ddlambda.go b/ddlambda.go
index 41030bf..0c4cfe4 100644
--- a/ddlambda.go
+++ b/ddlambda.go
@@ -70,6 +70,8 @@ type (
// the counter will get totally reset after CircuitBreakerInterval
// default: 4
CircuitBreakerTotalFailures uint32
+ // FIPSMode enables FIPS mode. Defaults to true in GovCloud re... | 1 | 1 | 0 | [{"id": "G0", "claim": "Log the error when the DD_LAMBDA_FIPS_MODE env var fails to parse, otherwise a failed parse produces no log at all.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
DataDog__datadog-lambda-go__2 | DataDog/datadog-lambda-go | 2 | defect | ecfddc307113b447b9a52d6cf0a055889dc93444 | 4a3965bcecace91e69c5104c531602daf75eec04 | Darcy rayner/metrics | Adds Distribution metrics support
<img width="1441" alt="Screen Shot 2019-05-29 at 10 33 47 AM" src="https://user-images.githubusercontent.com/50632605/58565805-6011d080-81fd-11e9-87dd-9edb8dd7a2f8.png">
| diff --git a/README.md b/README.md
index ca860440..6af0c866 100644
--- a/README.md
+++ b/README.md
@@ -8,6 +8,11 @@ Datadog's Lambda Go client library enables distributed tracing between serverful
go get github.com/DataDog/dd-lambda-go
```
+The following Datadog environment variables should be defined via the AWS C... | 2 | 1 | 0 | [{"id": "G0", "claim": "The ShouldRetryOnFailure trade-off might better be framed as performance vs data integrity in the config documentation.", "category": "documentation", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The extra whitespace after 'lambda.Start(' in the README... | null |
DataDog__datadog-lambda-go__220 | DataDog/datadog-lambda-go | 220 | defect | 156931bc879bccdcd326ca8260e47298df4c1225 | 07f6ea8f2ca01aa0e3af56e1f1edda17dd50b7eb | Add request-id as header to start/end invocation. | <!--- Please remember to review the [contribution guidelines](https://github.com/DataDog/datadog-lambda-go/blob/main/CONTRIBUTING.md) if you have not yet done so._ --->
[dd-trace-go PR](https://github.com/DataDog/dd-trace-go/pull/4136)
<!---
[WARNING!] We have migrated this repo to https://github.com/DataDog/dd-t... | diff --git a/internal/extension/extension.go b/internal/extension/extension.go
index 68e2813..07ab6b4 100644
--- a/internal/extension/extension.go
+++ b/internal/extension/extension.go
@@ -24,6 +24,7 @@ import (
"time"
"github.com/DataDog/datadog-lambda-go/internal/logger"
+ "github.com/aws/aws-lambda-go/lambdaco... | 3 | 2 | 1 | [{"id": "G0", "claim": "Both new end-invocation request-ID tests construct the ExtensionManager with startInvocationUrl but then call SendEndInvocationRequest, so endInvocationUrl stays empty, http.NewRequest returns nil and req.Header.Set dereferences it, making the tests panic before the assertions run; endInvocation... | null |
DataDog__datadog-lambda-go__25 | DataDog/datadog-lambda-go | 25 | defect | 28f79cf32a2c3e4b57fbf533b76e3ea470f91b50 | 434bd8069d58bdef131df4f14b81927711bb863d | add enhanced metrics: invocations and errors | ### What does this PR do?
Adds the enhanced metrics of `aws.lambda.enhanced.invocations` and `aws.lambda.enhanced.errors` and the respective tags from the Lambda Context. This includes the custom tag of `cold_start:true|false`.
### Testing Guidelines
Includes unit tests for proper grabbing of enhanced metric ... | diff --git a/ddlambda.go b/ddlambda.go
index 987200f0..9c574bde 100644
--- a/ddlambda.go
+++ b/ddlambda.go
@@ -45,6 +45,8 @@ type (
// DebugLogging will turn on extended debug logging.
DebugLogging bool
+ // EnhancedMetrics enables the reporting of enhanced metrics under `aws.lambda.enhanced*` and adds enhance... | 2 | 1 | 0 | [{"id": "G0", "claim": "It would be cleaner if submitEnhancedMetrics and getEnhancedMetrics were methods on the MetricsListener, called automatically from within HandlerStarted and HandlerFinished.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull ... | null |
DataDog__datadog-lambda-go__38 | DataDog/datadog-lambda-go | 38 | defect | a57de2180d44b3f6661d1bd79afdafc5923da3a2 | 8d5075a3d33d1e71cc20b895d4686b2eacd42f4b | add resource and executedversion tags | <!--- Please remember to review the [contribution guidelines](https://github.com/DataDog/datadog-lambda-layer-python/blob/master/CONTRIBUTING.md) if you have not yet done so._ --->
### What does this PR do?
Adds resource and executedversion tags to enanced metrics for lambda go
Updates and adds tests to account... | diff --git a/internal/metrics/listener.go b/internal/metrics/listener.go
index 7293bd3c..d719e2b1 100644
--- a/internal/metrics/listener.go
+++ b/internal/metrics/listener.go
@@ -12,11 +12,13 @@ import (
"context"
"encoding/json"
"fmt"
- "github.com/aws/aws-lambda-go/lambdacontext"
"runtime"
+ "strconv"
"stri... | 6 | 6 | 0 | [{"id": "G0", "claim": "Restore the previous invoked-function-ARN example in the comment (M001 flags that it was changed to 'ex: aS'; M007 asks to leave the previous example and add one with an alias present).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", ... | null |
DataDog__datadog-lambda-go__60 | DataDog/datadog-lambda-go | 60 | defect | 8aafaf9113b9b7ddf057cc5ef15af1ef083cf67f | cbe77eef802ac1e2aef8339374b7732808d24a65 | Fixes For Tracing | ### What does this PR do?
Fix some tracing bugs:
- Refactor the function that determines the root trace context. Most importantly, stop using the parent ID from X-Ray when MERGE_XRAY_TRACES is off. If MERGE_XRAY_TRACES is off, incoming X-Ray context should be ignored entirely.
- Always mark the the function exe... | diff --git a/ddlambda.go b/ddlambda.go
index 43b70be0..03e3cd0b 100644
--- a/ddlambda.go
+++ b/ddlambda.go
@@ -91,17 +91,18 @@ func WrapHandler(handler interface{}, cfg *Config) interface{} {
return wrapper.WrapHandlerWithListeners(handler, &tl, &ml)
}
-// GetTraceHeaders reads a map containing the Datadog trace h... | 2 | 1 | 0 | [{"id": "G0", "claim": "Asks why the createDummySubsegmentForXrayConverter call was moved down out of addRootTraceContextToContext into getDatadogTraceContextFromEvent.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The drop in test coverage is concernin... | null |
DataDog__datadog-lambda-go__64 | DataDog/datadog-lambda-go | 64 | defect | bd703826b976a865a1a6d14482ecc7ff33612080 | 3d12d293a096431692160c54ebdfeda8085fdc4f | Adding circuit breaker | ### What does this PR do?
This PR adds a circuit breaker so when there are too many errors calling the DataDog
endpoint, the library stops trying for a while.
This should reduce the resources needed both on the the caller side and on the DataDog side.
Ideally, this is a complementary PR to https://github.com... | diff --git a/LICENSE-3rdparty.csv b/LICENSE-3rdparty.csv
index 95a5b26e..80a2c2ce 100644
--- a/LICENSE-3rdparty.csv
+++ b/LICENSE-3rdparty.csv
@@ -8,3 +8,4 @@ go-spew,github.com/davecgh/go-spew,ISC,"Copyright (c) 2012-2016 Dave Collins <da
go-jmespath,github.com/jmespath/go-jmespath,Apache-2.0,"Copyright 2015 James Sa... | 4 | 4 | 2 | [{"id": "G0", "claim": "The 5-second HttpClientTimeout default should be set in one place only (internal/metrics/listener.go), following the BatchInterval pattern, and named as a constant (e.g. defaultHttpClientTimeout) instead of the inline literal time.Second * 5.", "category": "maintainability", "verdict": "supporte... | null |
DataDog__datadog-lambda-go__7 | DataDog/datadog-lambda-go | 7 | defect | e996df894b54a54bbb059e68132244566a2edcd3 | 2231ebb2319530c301042e24018f934459d1ec6c | Darcy.rayner/debug logging | ### What does this PR do?
Adds optional logging for debugging purposes, and logging for errors.
Also fixes the following bugs
* Site always had to be set explicitly from config, default value wasn't working correctly
* Swap over to the new distribution_points API
| diff --git a/ddlambda.go b/ddlambda.go
index 1d0b7c91..abb09f95 100644
--- a/ddlambda.go
+++ b/ddlambda.go
@@ -16,6 +16,7 @@ import (
"runtime"
"time"
+ "github.com/DataDog/datadog-lambda-go/internal/logger"
"github.com/DataDog/datadog-lambda-go/internal/metrics"
"github.com/DataDog/datadog-lambda-go/internal... | 3 | 3 | 0 | [{"id": "G0", "claim": "The comment above Debug in internal/logger/log.go misspells 'log' as 'lgo'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The error message in WrapHandlerWithListeners should spell 'handler function' rather than 'handlerfu... | null |
DataDog__datadog-lambda-go__80 | DataDog/datadog-lambda-go | 80 | defect | c88b4f476017bc639169895b0beddfa380a1984f | 1d904e285db356d50f21eaa8103acd96bd71933f | Support custom root trace extraction from Lambda body content | ### What does this PR do?
This is really to serve of a POC for supporting custom trace context extractors. Rough implementation, but the concept _should_ work.
It simply allows a func to be passed in that can grab headers from any Lambda body type. The library only supports API Gateway headers as standard. My use... | diff --git a/ddlambda.go b/ddlambda.go
index 7b19c308..1111b7f5 100644
--- a/ddlambda.go
+++ b/ddlambda.go
@@ -68,6 +68,9 @@ type (
// the counter will get totally reset after CircuitBreakerInterval
// default: 4
CircuitBreakerTotalFailures uint32
+ // TraceContextExtractor is the function that extracts a roo... | 4 | 4 | 0 | [{"id": "G0", "claim": "The new `Context` type should be named `TraceContext` to avoid confusion with `context.Context`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The helper `getContext` should be renamed to `getTraceContext`.", "category":... | null |
DataDog__datadog-lambda-go__81 | DataDog/datadog-lambda-go | 81 | defect | 836741a9a9a213001e25defa14ba2d3b79fbc5fe | eb5d887809ca508c9419c77e72bda90fb1a0f979 | Support tracing with extension | <!--- Please remember to review the [contribution guidelines](https://github.com/DataDog/datadog-lambda-go/blob/main/CONTRIBUTING.md) if you have not yet done so._ --->
### What does this PR do?
Support tracing with the extension.
### Testing Guidelines
<img width="1005" alt="Screen Shot 2021-07-09 at 9 53... | diff --git a/internal/trace/listener.go b/internal/trace/listener.go
index 3d64e809..5165983d 100644
--- a/internal/trace/listener.go
+++ b/internal/trace/listener.go
@@ -12,6 +12,7 @@ import (
"context"
"encoding/json"
"fmt"
+ "os"
"strings"
"github.com/DataDog/datadog-lambda-go/internal/logger"
@@ -35,6 +... | 3 | 1 | 0 | [{"id": "G0", "claim": "The naming of dd-trace-go's WithLambdaMode method is misleading (it is tied to logToStdout, so lambda mode must be set to false to use the agent), and the reviewer asks whether that method should be renamed in dd-trace-go.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope"... | null |
DataDog__datadog-lambda-go__85 | DataDog/datadog-lambda-go | 85 | defect | 9c5f33acf91786dc9e42d4bac41e99a5ca75c5d9 | 073e1c96110f6a73b619817ed6b7754db087bd38 | Add WrapHandlerInterface to support lambda.StartHandler | ### What does this PR do?
Adds support for lambda.StartHandler, via a new method WrapHandlerInterface
### Motivation
#72
### Testing Guidelines
The new code is covered by unit tests.
### Additional Notes
### Types of changes
- [ ] Bug fix
- [X] New feature
- [ ] Breaking change
- [ ] Misc ... | diff --git a/ddlambda.go b/ddlambda.go
index e799e9dd..2f9eb10d 100644
--- a/ddlambda.go
+++ b/ddlambda.go
@@ -23,6 +23,7 @@ import (
"github.com/DataDog/datadog-lambda-go/internal/metrics"
"github.com/DataDog/datadog-lambda-go/internal/trace"
"github.com/DataDog/datadog-lambda-go/internal/wrapper"
+ "github.com/... | 4 | 3 | 1 | [{"id": "G0", "claim": "The pull request accidentally rewrote the copyright year from 2021 to 2019 in the wrap_handler.go license header, which should be corrected.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new WrapHandlerInterface function... | null |
DataDog__datadog-lambda-go__88 | DataDog/datadog-lambda-go | 88 | defect | d6fcbc3fd12aa65a3835bf0bfb8f902163e9fe88 | ca83782452dd184378e9f72b0902d5c7c88ea218 | Set default sampling priority to sampler-keep | <!--- Please remember to review the [contribution guidelines](https://github.com/DataDog/datadog-lambda-go/blob/main/CONTRIBUTING.md) if you have not yet done so._ --->
### What does this PR do?
Fixes #74. If datadog-lambda-go comes across a trace that does not have sampling-priority set, it should set a default... | diff --git a/internal/trace/context.go b/internal/trace/context.go
index fb3d6a70..156100e8 100644
--- a/internal/trace/context.go
+++ b/internal/trace/context.go
@@ -148,7 +148,7 @@ func getDatadogTraceContextFromEvent(ctx context.Context, ev json.RawMessage) (T
samplingPriority, ok := lowercaseHeaders[samplingPri... | 1 | 1 | 1 | [{"id": "G0", "claim": "A unit test should be added covering the new behaviour of defaulting sampling priority to \"1\" (sampler-keep) when the sampling priority header is missing.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
DataDog__dd-trace-go__3012 | DataDog/dd-trace-go | 3,012 | defect | 67e7c569711eac965d0bf867e299bc3bb6ab688a | cef2e3734a219a2ea376299b5245a290b33e2721 | contrib/http/net: adding integration-level option to configure error codes | <!--
* New contributors are highly encouraged to read our
[CONTRIBUTING](/CONTRIBUTING.md) documentation.
* Commit and PR titles should be prefixed with the general area of the pull request's change.
-->
### What does this PR do?
Closes #2882
Users want a way to configure error codes for http server spans g... | diff --git a/contrib/internal/httptrace/before_handle.go b/contrib/internal/httptrace/before_handle.go
index ba0458f47d3..5403d7ba7c0 100644
--- a/contrib/internal/httptrace/before_handle.go
+++ b/contrib/internal/httptrace/before_handle.go
@@ -6,6 +6,7 @@
package httptrace
import (
+ "fmt"
"net/http"
"gopkg.... | 6 | 6 | 2 | [{"id": "G0", "claim": "BeforeHandle should let FinishRequestSpan add the error tag rather than duplicating that logic inline in closeSpan.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The default status-error check should be factored into a s... | null |
DataDog__dd-trace-go__3025 | DataDog/dd-trace-go | 3,025 | defect | 471d72351b4ef7ed5cd69efddebaa3a3ccd4b3e2 | 3fc11213a10083958eb53231dfc3680979e388d0 | contrib/database/sql: Close DB Stats goroutine on db.Close() | ### What does this PR do?
Introduces a stop condition for the `pollDBStats` goroutine when `db.Close()` has been invoked by the user.
### Motivation
Protecting against runaway goroutines.
### Details
**Background**
To register a sql driver for instrumentation, a user must call [sqltrace.Open](https://pkg.go.d... | diff --git a/contrib/database/sql/metrics.go b/contrib/database/sql/metrics.go
index d8ff4ed266f..17293eb1c1c 100644
--- a/contrib/database/sql/metrics.go
+++ b/contrib/database/sql/metrics.go
@@ -7,6 +7,7 @@ package sql // import "gopkg.in/DataDog/dd-trace-go.v1/contrib/database/sql"
import (
"database/sql"
+ "sy... | 5 | 3 | 0 | [{"id": "G0", "claim": "The getter GetStopChan would be better named StopChan.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "InitStopChan would be better named Init, in case the package evolves to initialize more things beyond the stop chan.", ... | null |
DataDog__dd-trace-go__3069 | DataDog/dd-trace-go | 3,069 | defect | 5a8a82ce66fd77fcefa4f983968ab8f0ea89556a | 39a9f0d3acc097c9af222c7e144aff5edead7897 | Datadog Baggage API | <!--
* New contributors are highly encouraged to read our
[CONTRIBUTING](/CONTRIBUTING.md) documentation.
* Commit and PR titles should be prefixed with the general area of the pull request's change.
-->
### What does this PR do?
Adding baggage API. This is the first PR to add baggage functionality to dd-trac... | diff --git a/ddtrace/tracer/baggage.go b/ddtrace/tracer/baggage.go
new file mode 100644
index 00000000000..54cb11a8524
--- /dev/null
+++ b/ddtrace/tracer/baggage.go
@@ -0,0 +1,75 @@
+// Unless explicitly stated otherwise all files in this repository are licensed
+// under the Apache License Version 2.0.
+// This produc... | 7 | 7 | 3 | [{"id": "G0", "claim": "The single-step conversion `bm, _ := ctx.Value(baggageKey{}).(map[string]string)` could panic if the stored context value is nil; the author should split the ctx.Value call and the type conversion into two steps.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "in... | null |
DataDog__dd-trace-go__3123 | DataDog/dd-trace-go | 3,123 | defect | ef2e4e2335c69d02cd58ff5e1e5c1a00ac34342d | a45589659157fed79cb7b246c574e5cadd224133 | ddtrace/tracer: Span links improvements and bug fix | ### What does this PR do?
1. Implements an `AddSpanLink` method
2. Previously, span links are only serialized under `Span[span_links]`. This PR serializes span links in the span meta, under `Span[meta][_dd.span_links]`.
3. Moves span links struct to its own file since regenerating `span_links.msgp.go` previously r... | diff --git a/ddtrace/ddtrace.go b/ddtrace/ddtrace.go
index 928816ba6cf..c6b939959f8 100644
--- a/ddtrace/ddtrace.go
+++ b/ddtrace/ddtrace.go
@@ -79,6 +79,9 @@ type Span interface {
// item should propagate to all descendant spans, both in- and cross-process.
SetBaggageItem(key, val string)
+ // AddSpanLinks appen... | 6 | 3 | 2 | [{"id": "G1", "claim": "Adding AddSpanLinks to the existing Span interface is a breaking change; a new interface with the new method should be introduced instead (as done for span links on span context).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "A n... | null |
DataDog__dd-trace-go__3159 | DataDog/dd-trace-go | 3,159 | defect | d1f5a79357977e7f9f769263c45c9fa20fca85f6 | 48f9255598b3b029ee972956bfe7c20f6bb36ee9 | [LANGPLAT-87] Implement automated release tagging for dd-trace-go v2 | ### What does this PR do?
This PR introduces the `autoreleasetagger` tool, which automates the process of tagging and versioning Go modules.
It includes the main functionality for finding modules, updating dependencies, committing changes, and creating/pushing tags.
Additionally, it adds integration tests to verif... | diff --git a/go.work b/go.work
index fb6b679655d..4af81a9ab0f 100644
--- a/go.work
+++ b/go.work
@@ -65,6 +65,7 @@ use (
./internal/exectracetest
./internal/setup-smoke-test
./internal/traceprof/traceproftest
+ ./tools/autoreleasetagger
./tools/fixmodules
./tools/v2check
./tools/v2check/_stage
diff --git a/... | 4 | 4 | 0 | [{"id": "G0", "claim": "The README's opening sentence is hard to read and should be reworded as suggested (\"...respecting dependency order by tagging dependencies first before their dependents\").", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Th... | null |
DataDog__dd-trace-go__3440 | DataDog/dd-trace-go | 3,440 | defect | 15004cf7bdddcd7aa9e1b54d7f2445271ca5290f | 8049e84234ea726806ee161922b121b0d8ef0b2d | feat(baggage): auto-adding baggage to span tags | <!--
* New contributors are highly encouraged to read our
[CONTRIBUTING](/CONTRIBUTING.md) documentation.
* Commit and PR titles should be prefixed with the general area of the pull request's change.
-->
### What does this PR do?
This PR introduces automatic propagation of baggage key-value pairs as span tags... | diff --git a/ddtrace/tracer/textmap.go b/ddtrace/tracer/textmap.go
index 04614ec32ea..310800b76e5 100644
--- a/ddtrace/tracer/textmap.go
+++ b/ddtrace/tracer/textmap.go
@@ -1433,17 +1433,20 @@ func (*propagatorBaggage) extractTextMap(reader TextMapReader) (*SpanContext, er
// Split on the first instance of "=" i.e, ... | 9 | 9 | 2 | [{"id": "G0", "claim": "Remove the added early-return handling of malformed baggage items from textmap.go and rely on PR #3498 for those changes.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Annotate the baggageTagKeys field to explain that it is used ... | null |
DataDog__dd-trace-go__3471 | DataDog/dd-trace-go | 3,471 | defect | 200ebbecc62672cb46862bbad4c07d70e2b6b331 | 82bbde617f010a480f934b6fbcd8c3c4cabc8769 | appsec: support route quantization for proxies | <!--
* New contributors are highly encouraged to read our
[CONTRIBUTING](/CONTRIBUTING.md) documentation.
* Commit and PR titles should be prefixed with the general area of the pull request's change.
-->
### What does this PR do?
This PR create a small algorithm to support proxies where we don't have access... | diff --git a/contrib/labstack/echo.v4/appsec.go b/contrib/labstack/echo.v4/appsec.go
index 417c1a87615..28ba83556ff 100644
--- a/contrib/labstack/echo.v4/appsec.go
+++ b/contrib/labstack/echo.v4/appsec.go
@@ -32,7 +32,12 @@ func withAppSec(next echo.HandlerFunc, span trace.TagSetter) echo.HandlerFunc {
}
})
/... | 1 | 1 | 1 | [{"id": "G0", "claim": "Asks whether the default RouteForRequest returning an empty string is expected, or whether it should call the quantizer instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
DataDog__dd-trace-go__3570 | DataDog/dd-trace-go | 3,570 | defect | bec204b102b79e2b51329b4e89730566d2392640 | afe7b1e51a95d52ef1e2aae06b1db2dcd8ebd92f | internal/stableconfig: Report configuration telemetry | <!--
* New contributors are highly encouraged to read our
[CONTRIBUTING](/CONTRIBUTING.md) documentation.
* Commit and PR titles should be prefixed with the general area of the pull request's change.
-->
### What does this PR do?
Reports all configurations sourced from the Hands Off Configs API to telemetry. ... | diff --git a/ddtrace/tracer/option.go b/ddtrace/tracer/option.go
index 0338e925b6f..3fc9462613e 100644
--- a/ddtrace/tracer/option.go
+++ b/ddtrace/tracer/option.go
@@ -455,7 +455,6 @@ func newConfig(opts ...StartOption) (*config, error) {
c.spanTimeout = internal.DurationEnv("DD_TRACE_ABANDONED_SPAN_TIMEOUT", 10*ti... | 2 | 1 | 0 | [{"id": "G0", "claim": "The envToTelemetryName mapping added in internal/stableconfig/api.go duplicates normalization the telemetry intake backend already performs, and the reviewer asks whether it is really necessary.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", ... | null |
DataDog__dd-trace-go__3720 | DataDog/dd-trace-go | 3,720 | defect | 4b955cc45f22a0398957575a983b4eb7caa5ffe8 | fe576a157e218bd1453aac09dcf986ad7b5456d0 | fix (internal/civisibility): fix parallel testing when ancilliary features are enabled. | <!--
* New contributors are highly encouraged to read our
[CONTRIBUTING](/CONTRIBUTING.md) documentation.
* Commit and PR titles should be prefixed with the general area of the pull request's change.
-->
### What does this PR do?
This PR fixes the call to `t.Parallel()` when any of the test optimization anc... | diff --git a/internal/civisibility/integrations/gotesting/instrumentation.go b/internal/civisibility/integrations/gotesting/instrumentation.go
index 7a3a632c937..ff4486b5242 100644
--- a/internal/civisibility/integrations/gotesting/instrumentation.go
+++ b/internal/civisibility/integrations/gotesting/instrumentation.go... | 1 | 1 | 1 | [{"id": "G1", "claim": "Add an integration test that exercises the orchestrion.yml instrumentation using t.Parallel().", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
DataDog__dd-trace-go__3788 | DataDog/dd-trace-go | 3,788 | defect | 4ce42d410bdb03f82ebf005b3b8a5917df90e324 | f8987a79e2f45d512e20ceeb93bdd7076d1e864f | chore(ddtrace/tracer): check for goroutine leaks | ### What does this PR do?
Check that `ddtrace/tracer` tests don't leak goroutines using `go.uber.org/goleak`. This required fixing a lot of code, see the individual commits for details. It's possible that some of these goroutines leaks could have impacted customers, but I suspect most of them are just issues for tes... | diff --git a/ddtrace/tracer/option.go b/ddtrace/tracer/option.go
index ea652b3ec6e..ea6a4e1b602 100644
--- a/ddtrace/tracer/option.go
+++ b/ddtrace/tracer/option.go
@@ -681,7 +681,7 @@ func udsClient(socketPath string, timeout time.Duration) *http.Client {
Transport: &http.Transport{
Proxy: http.ProxyFromEnviron... | 4 | 4 | 0 | [{"id": "G0", "claim": "The seelog goroutine leak that TestMain now ignores should really be fixed in the future (the PR author concedes it is a bigger task than this PR).", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Disconnecting the dial timeout fro... | null |
DataDog__dd-trace-go__3800 | DataDog/dd-trace-go | 3,800 | defect | e2d831e1ec7d13bdeb823eff1405e75af769f6e4 | ca8f7591d8b31af01d8bf07ca5d5c716961f2d9e | feat(internal/civisibility): update ci provider spec and add DroneCI support | <!--
* New contributors are highly encouraged to read our
[CONTRIBUTING](/CONTRIBUTING.md) documentation.
* Commit and PR titles should be prefixed with the general area of the pull request's change.
-->
### What does this PR do?
This PR adds support for DroneCI ci provider and updates the specs to the late... | diff --git a/internal/civisibility/constants/git.go b/internal/civisibility/constants/git.go
index 65043ec9dc6..5f7379aa838 100644
--- a/internal/civisibility/constants/git.go
+++ b/internal/civisibility/constants/git.go
@@ -79,4 +79,7 @@ const (
// GitPrBaseBranch indicates the GIT PR base branch name.
GitPrBase... | 1 | 1 | 0 | [{"id": "G0", "claim": "The inner `if` block that sets tags[constants.GitPrBaseBranch] = normalizeRef(tag) for refs/tags-like values is redundant, because the same assignment is executed unconditionally on the following line anyway.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "in... | null |
DataDog__dd-trace-go__3815 | DataDog/dd-trace-go | 3,815 | defect | e03025875ae009664b423e56dfb622e4e89e6c32 | 896e07cf6c701138b387af15457ab4007accb6b1 | contrib/envoyproxy: refine component detection | <!--
* New contributors are highly encouraged to read our
[CONTRIBUTING](/CONTRIBUTING.md) documentation.
* Commit and PR titles should be prefixed with the general area of the pull request's change.
-->
### What does this PR do?
This PR refines how the value of the component tag is selected for the GCP Ser... | diff --git a/contrib/envoyproxy/go-control-plane/envoy_test.go b/contrib/envoyproxy/go-control-plane/envoy_test.go
index 64f8ba5b68f..0c9ac44b95d 100644
--- a/contrib/envoyproxy/go-control-plane/envoy_test.go
+++ b/contrib/envoyproxy/go-control-plane/envoy_test.go
@@ -38,7 +38,7 @@ func TestAppSec(t *testing.T) {
}
... | 3 | 2 | 0 | [{"id": "G0", "claim": "Please use an enum instead of a boolean for the integration flag everywhere in the config and call sites.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "Add Istio detection so requests running under Istio are reported with an is... | null |
DataDog__dd-trace-go__3837 | DataDog/dd-trace-go | 3,837 | defect | 80c999036ecd3e56fe8833b8d65f77a2d56e82c4 | e7cbad2d02f24d10194f7e88cd0374dd905cdc43 | feat: do not report error stack for status code errors | <!--
* New contributors are highly encouraged to read our
[CONTRIBUTING](/CONTRIBUTING.md) documentation.
* Commit and PR titles should be prefixed with the general area of the pull request's change.
-->
### What does this PR do?
* Creates a new tag, `ErrorNoStackTrace`, to report errors without capturing t... | diff --git a/contrib/gofiber/fiber.v2/fiber.go b/contrib/gofiber/fiber.v2/fiber.go
index 701ebe82924..e9101815286 100644
--- a/contrib/gofiber/fiber.v2/fiber.go
+++ b/contrib/gofiber/fiber.v2/fiber.go
@@ -98,7 +98,7 @@ func Middleware(opts ...Option) func(c *fiber.Ctx) error {
span.SetTag(ext.Error, err)
} else ... | 3 | 3 | 1 | [{"id": "G0", "claim": "Adding the two new error tags may have implications on the ingestion side, especially for error tracking, that should be checked before release.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "error.stack should not be set from tak... | null |
DataDog__dd-trace-go__3839 | DataDog/dd-trace-go | 3,839 | defect | d6a972fba1dffa937147aee609322029108f0dfe | 8c05341a9e0d37e9288ed707421ba945a706db59 | feat(contrib/net/http): add WithClientTimings option | ## Summary
Adds support for `httptrace.ClientTrace` on wrapped `http.Client` requests.
When enabled via `WithClientTimings(true)`, captures detailed HTTP request timing as span tags for debugging network performance issues.
## Changes
- Added `WithClientTimings(bool)` option (disabled by default)
- Captures timing ... | diff --git a/contrib/net/http/example_test.go b/contrib/net/http/example_test.go
index 09b50b96b09..c76f864b9e5 100644
--- a/contrib/net/http/example_test.go
+++ b/contrib/net/http/example_test.go
@@ -7,6 +7,7 @@ package http_test
import (
"net/http"
+ "net/http/httptest"
httptrace "github.com/DataDog/dd-trace... | 1 | 1 | 1 | [{"id": "G0", "claim": "rarguelloF thinks the option name WithClientTrace would be clearer as WithClientTimings, since the package already does tracing and this option only adds timing tags, and requests the rename.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
DataDog__dd-trace-go__3898 | DataDog/dd-trace-go | 3,898 | defect | c921cdc2e9398d1457c0678000fd04c7208a1fcf | 06baac112b2165a03055711b18ca6a67594c0183 | refactor(internal/appsec): move appsec-internal-go config | <!--
* New contributors are highly encouraged to read our
[CONTRIBUTING](/CONTRIBUTING.md) documentation.
* Commit and PR titles should be prefixed with the general area of the pull request's change.
-->
### What does this PR do?
<!--
* A brief description of the change being made with this pull request.
* If the ... | diff --git a/internal/appsec/apisec/internal/config/const.go b/internal/appsec/apisec/internal/config/const.go
new file mode 100644
index 00000000000..6483f288082
--- /dev/null
+++ b/internal/appsec/apisec/internal/config/const.go
@@ -0,0 +1,11 @@
+// Unless explicitly stated otherwise all files in this repository are ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The conversion of the strconv.ParseUint result to int64 in RateLimitFromEnv lacks an upper-bound check, so an architecture-dependent value above math.MaxInt64 could wrap negative.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
DataDog__dd-trace-go__3930 | DataDog/dd-trace-go | 3,930 | defect | 98744a1a1ef6159ece04a44922978bc176dada04 | ef6b6c9b2b2bfd1b0218d8da09ffadcb7a9b1482 | feat(gin/appsec): support for request body analysis and blocking | <!--
* New contributors are highly encouraged to read our
[CONTRIBUTING](/CONTRIBUTING.md) documentation.
* Commit and PR titles should be prefixed with the general area of the pull request's change.
-->
### What does this PR do?
This PR implements request body analysis and blocking for the gin framework us... | diff --git a/contrib/gin-gonic/gin/appsec.go b/contrib/gin-gonic/gin/appsec.go
index 41670d701c7..b60b57b3151 100644
--- a/contrib/gin-gonic/gin/appsec.go
+++ b/contrib/gin-gonic/gin/appsec.go
@@ -9,12 +9,56 @@ import (
"net/http"
"github.com/DataDog/dd-trace-go/v2/appsec"
+ "github.com/DataDog/dd-trace-go/v2/app... | 1 | 1 | 0 | [{"id": "G0", "claim": "The AppsecBinding doc comment should use [binding.BindingBody] doc-link syntax instead of the plain binding.BindingBody references.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
DataDog__dd-trace-go__3937 | DataDog/dd-trace-go | 3,937 | defect | 32c3ebe05375835642b3b1ef350b30aeeb2b53d2 | 56e26fa0a3a6493983f6f6befbaf0c2bbcb998a3 | feat: store OTEL process context in named anonymous mapping on Linux | <!--
* New contributors are highly encouraged to read our
[CONTRIBUTING](/CONTRIBUTING.md) documentation.
* Commit and PR titles should be prefixed with the general area of the pull request's change.
-->
### What does this PR do?
This PR stores the tracer process level context in a named anonymous mapping o... | diff --git a/ddtrace/tracer/otelprocesscontext.go b/ddtrace/tracer/otelprocesscontext.go
new file mode 100644
index 00000000000..703ccc5742d
--- /dev/null
+++ b/ddtrace/tracer/otelprocesscontext.go
@@ -0,0 +1,27 @@
+// Unless explicitly stated otherwise all files in this repository are licensed
+// under the Apache Lic... | 11 | 10 | 1 | [{"id": "G0", "claim": "The field name should follow the Go convention of capitalizing acronyms, e.g. TelemetrySDKLanguage instead of TelemetrySdkLanguage.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "It may be worth adding a comment linking t... | null |
DataDog__dd-trace-go__4010 | DataDog/dd-trace-go | 4,010 | defect | 2997dc9c4cd9173606934d4634d931f564e73be1 | 17e7345d75f8632152ca9651a0c68e0e134212be | perf: improve process tags insertion | <!--
* New contributors are highly encouraged to read our
[CONTRIBUTING](/CONTRIBUTING.md) documentation.
* Commit and PR titles should be prefixed with the general area of the pull request's change.
-->
### What does this PR do?
Process tags were set on first span of each chunk instead of first span of fir... | diff --git a/ddtrace/tracer/payload.go b/ddtrace/tracer/payload.go
index 3cb58ef18ac..da2c105588b 100644
--- a/ddtrace/tracer/payload.go
+++ b/ddtrace/tracer/payload.go
@@ -12,6 +12,7 @@ import (
"sync"
"sync/atomic"
+ "github.com/DataDog/dd-trace-go/v2/internal/processtags"
"github.com/tinylib/msgp/msgp"
)
... | 7 | 3 | 0 | [{"id": "G0", "claim": "It may be unsafe to lock and update a span here if a span can still be transformed after being finished somewhere.", "category": "correctness", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new process-tags assertions in TestPayloadDecode should carry... | null |
DataDog__dd-trace-go__4043 | DataDog/dd-trace-go | 4,043 | defect | 2c5b4d9ca1b051c017484d92955f646f508896c8 | 10016d7b8ebf3bde0c6e679e44a56e705692d133 | fix(ddtrace/tracer): Implement Serverless Service Representation | <!--
* New contributors are highly encouraged to read our
[CONTRIBUTING](/CONTRIBUTING.md) documentation.
* Commit and PR titles should be prefixed with the general area of the pull request's change.
-->
### What does this PR do?
Fixes the Serverless Service Representation (SSR) for Go.
In serverless enviro... | diff --git a/ddtrace/tracer/spancontext.go b/ddtrace/tracer/spancontext.go
index c52365171ba..50137f2295a 100644
--- a/ddtrace/tracer/spancontext.go
+++ b/ddtrace/tracer/spancontext.go
@@ -19,6 +19,7 @@ import (
"github.com/DataDog/dd-trace-go/v2/ddtrace/ext"
"github.com/DataDog/dd-trace-go/v2/ddtrace/internal/trac... | 7 | 6 | 1 | [{"id": "G0", "claim": "The serverless check should not return an unstandardized string; return a boolean via an `isServerless` function so the call site becomes a boolean check instead of comparing against \"aws_lambda\".", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": ... | null |
DataDog__dd-trace-go__4050 | DataDog/dd-trace-go | 4,050 | defect | 45246a0188c9c1cd73db516229ce1e6f19c1ecac | 3b1c5e71cce5024cf60e49683eb3b593c8ddc339 | fix(llmobs): include missing tags and make SubmitEvaluationFromSpan more flexible | <!--
* New contributors are highly encouraged to read our
[CONTRIBUTING](/CONTRIBUTING.md) documentation.
* Commit and PR titles should be prefixed with the general area of the pull request's change.
-->
### What does this PR do?
<!--
* A brief description of the change being made with this pull request.
... | diff --git a/internal/llmobs/llmobs.go b/internal/llmobs/llmobs.go
index 781b68cccff..d648f4ab557 100644
--- a/internal/llmobs/llmobs.go
+++ b/internal/llmobs/llmobs.go
@@ -139,15 +139,22 @@ type LLMObs struct {
}
func newLLMObs(cfg *config.Config, tracer Tracer) (*LLMObs, error) {
+ agentSupportsLLMObs := cfg.Agen... | 2 | 1 | 1 | [{"id": "G0", "claim": "newLLMObs should return an error, rather than only logging a warning, when agentless mode is explicitly disabled and the agent does not support LLMObs, since no data could be submitted in that configuration.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}... | null |
DataDog__dd-trace-go__4062 | DataDog/dd-trace-go | 4,062 | defect | 278ef6621b7baeb4a3d142a292dc707de336a792 | 922bd28cc5a229ab9530a9ff4d28d8d608a20e9b | chore(stacktrace): Use internal/stacktrace package where it possible | Signed-off-by: Kemal Akkoyun <kemal.akkoyun@datadoghq.com>
Consolidates stacktrace capture and formatting logic into the `internal/stacktrace` package, eliminating duplicate implementations across the codebase.
No functional behavior changes are intended. This is purely a refactoring effort.
### Reviewer's Checklist... | diff --git a/Makefile b/Makefile
index dc2b35f6d9c..e8674dd8221 100644
--- a/Makefile
+++ b/Makefile
@@ -82,9 +82,13 @@ format/shell: tools-install ## install shfmt
$(BIN_PATH) ./scripts/format.sh --shell
.PHONY: test
-test: tools-install ## Run all tests (core, integration, contrib)
+test: tools-install test/unit... | 3 | 1 | 0 | [{"id": "G0", "claim": "The inline comment in WrapN is out of sync with the code: it references SkipAndCaptureUnfiltered and a +4 offset while the code calls stacktrace.CaptureRaw(int(skip) + 2).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Swit... | null |
DataDog__dd-trace-go__4084 | DataDog/dd-trace-go | 4,084 | defect | 9884fb800ade8d3b45824e9eae4e8a6b49dcda8b | 8154ff00e15d1de8bdcac84fd77f3d654f57b0e4 | fix(sampling): Force manual sampling on locked traces | ### What does this PR do?
This PR adds a way to force the sampling decision on a Trace already locked. The current implementation does not allow overriding decision on a locked trace (distributed trace)
### Motivation
Aligning the Go tracer with other tracers.
### Reviewer's Checklist
<!--
* Authors can u... | diff --git a/ddtrace/tracer/span.go b/ddtrace/tracer/span.go
index c13ad2244ee..020cdf04434 100644
--- a/ddtrace/tracer/span.go
+++ b/ddtrace/tracer/span.go
@@ -408,6 +408,21 @@ func (s *Span) setSamplingPriorityLocked(priority int, sampler samplernames.Samp
s.context.setSamplingPriority(priority, sampler)
}
+// f... | 2 | 2 | 0 | [{"id": "G0", "claim": "The new helper should be named with the `set` (e.g. `forceSetSamplingPriorityLocked`) so it reads as a setter like the existing sampling-priority functions.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G3", "claim": "A comment should ... | null |
DataDog__dd-trace-go__4095 | DataDog/dd-trace-go | 4,095 | defect | b2e6ba79ff0ebbf02d90ccbd9ce2f3f948dede74 | 7f027b6bd1475ec27ff03383bb179d5b80dff616 | chore: revert breaking error tracking changes | <!--
* New contributors are highly encouraged to read our
[CONTRIBUTING](/CONTRIBUTING.md) documentation.
* Commit and PR titles should be prefixed with the general area of the pull request's change.
-->
### What does this PR do?
Reverts a change that would cause breaking behavior in Error Tracking.
<!--... | diff --git a/ddtrace/tracer/span.go b/ddtrace/tracer/span.go
index a1e48c1a9e2..20d3dba458b 100644
--- a/ddtrace/tracer/span.go
+++ b/ddtrace/tracer/span.go
@@ -454,6 +454,7 @@ func (s *Span) setTagError(value interface{}, cfg errorConfig) {
case error:
// if anyone sets an error value as the tag, be nice here
... | 1 | 1 | 1 | [{"id": "G0", "claim": "For the *errortrace.TracerError case, keep writing the old tag names (ext.ErrorStack for the formatted value and ext.ErrorHandlingStack for err.Format()) instead of renaming them, since there are no old errors for this path yet and it means less to migrate later.", "category": "design", "verdict... | null |
DataDog__dd-trace-go__4100 | DataDog/dd-trace-go | 4,100 | defect | 53b84e772730e1fcab23f926bfb431207f483a9b | d6dece652e8ef5b0e5b60cd0f15e8bf3467e8dcd | feat(contrib/mcp-go): Initial `mcp-go` tracer implementation | <!--
* New contributors are highly encouraged to read our
[CONTRIBUTING](/CONTRIBUTING.md) documentation.
* Commit and PR titles should be prefixed with the general area of the pull request's change.
-->
### What does this PR do?
<!--
* A brief description of the change being made with this pull request.
* If the d... | diff --git a/contrib/mark3labs/mcp-go/README.md b/contrib/mark3labs/mcp-go/README.md
new file mode 100644
index 00000000000..7a5cd98ef33
--- /dev/null
+++ b/contrib/mark3labs/mcp-go/README.md
@@ -0,0 +1,36 @@
+# MCP-Go Integration
+
+This integration provides Datadog tracing for the [mark3labs/mcp-go](https://github.co... | 11 | 11 | 3 | [{"id": "G0", "claim": "The README and example should handle the error returned by tracer.Start() to encourage users to handle errors.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The import should be aliased mcpgotrace instead of mcpgo, as in t... | null |
DataDog__dd-trace-go__4110 | DataDog/dd-trace-go | 4,110 | defect | aa8ae7f7399cc85add9ec63bc4c492de3762a95f | bfdd0bb5b48745b755f1929d14d185715f8d1d18 | fix(contrib/gorilla/mux): nil pointer exception in Orchestrion with Subrouter | ### What does this PR do?
Rather than initializing orchestrion's dd.config inside of the NewRouter invocation, lazy-loads the dd.config initialization inside of the ServeHTTP invocation, guarded by a sync.Once.
### Motivation
Fixes: https://github.com/DataDog/dd-trace-go/issues/4129
### Reviewer's Checklist
... | diff --git a/contrib/gorilla/mux/orchestrion.yml b/contrib/gorilla/mux/orchestrion.yml
index 723019c2adf..81805871935 100644
--- a/contrib/gorilla/mux/orchestrion.yml
+++ b/contrib/gorilla/mux/orchestrion.yml
@@ -21,6 +21,7 @@ aspects:
imports:
http: net/http
instrumentation: github... | 2 | 1 | 1 | [{"id": "G0", "claim": "The TestCaseSubrouter Setup is copied from the preexisting TestCaseRouter implementation, but the author is unsure whether it is needed.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Now that ddRouterConfig embeds a sync.Once, th... | null |
DataDog__dd-trace-go__4122 | DataDog/dd-trace-go | 4,122 | defect | bce309f15dc414444273a6a6fb34672bd2803559 | daa1f3e5345f4588f44d940d7caa1133ad4a111b | feat(contrib/mcp-go): Simplified way to add tracing | <!--
* New contributors are highly encouraged to read our
[CONTRIBUTING](/CONTRIBUTING.md) documentation.
* Commit and PR titles should be prefixed with the general area of the pull request's change.
-->
### What does this PR do?
Provides a simpler, more extensible, and less leaky way to add tracing to `mcp-go`.
<... | diff --git a/contrib/mark3labs/mcp-go/README.md b/contrib/mark3labs/mcp-go/README.md
new file mode 100644
index 00000000000..a0fbc221a45
--- /dev/null
+++ b/contrib/mark3labs/mcp-go/README.md
@@ -0,0 +1,29 @@
+# MCP-Go Integration
+
+This integration provides Datadog tracing for the [mark3labs/mcp-go](https://github.co... | 7 | 5 | 2 | [{"id": "G0", "claim": "WithTracing should handle a nil options argument (per the attached suggestion block) instead of dereferencing options.Hooks directly, which would panic on WithTracing(nil).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The A... | null |
DataDog__dd-trace-go__4150 | DataDog/dd-trace-go | 4,150 | defect | ce3c770de4ec4e2b6dccbf32a504e3ae30a944ce | f84c980919471323a1389f90b79e30741e2415a3 | refactor(stacktrace): remove unused prefixTrie implementation | This was an experiment that should have landed on `main`!
<!--
* New contributors are highly encouraged to read our
[CONTRIBUTING](/CONTRIBUTING.md) documentation.
* Commit and PR titles should be prefixed with the general area of the pull request's change.
-->
### What does this PR do?
Deleted character... | diff --git a/internal/stacktrace/parse_symbol_bench_test.go b/internal/stacktrace/parse_symbol_bench_test.go
new file mode 100644
index 00000000000..bc4e79a88c0
--- /dev/null
+++ b/internal/stacktrace/parse_symbol_bench_test.go
@@ -0,0 +1,26 @@
+// Unless explicitly stated otherwise all files in this repository are lic... | 2 | 2 | 0 | [{"id": "G0", "claim": "The prefixTrie remnant left in internal/stacktrace/trie.go (the orphaned trieNode type, warned about by multiple compiler/lint warnings) should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "CODEOWNERS should ... | null |
DataDog__dd-trace-go__4209 | DataDog/dd-trace-go | 4,209 | defect | fa40d3c86d1fec261365d373905274f36080ed85 | 47b647acc6481abc240dc496d6f029456f97e34d | feat(contrib/mcp/go-sdk): Add intent capture to `go-sdk` | <!--
* New contributors are highly encouraged to read our
[CONTRIBUTING](/CONTRIBUTING.md) documentation.
* Commit and PR titles should be prefixed with the general area of the pull request's change.
-->
### What does this PR do?
Adds the same functionality as https://github.com/DataDog/dd-trace-go/pull/4123, but ... | diff --git a/contrib/mark3labs/mcp-go/README.md b/contrib/mark3labs/mcp-go/README.md
index 7273d067216..0eb8f2adbee 100644
--- a/contrib/mark3labs/mcp-go/README.md
+++ b/contrib/mark3labs/mcp-go/README.md
@@ -20,6 +20,9 @@ func main() {
// Do not use with `server.WithHooks(...)`, as this overwrites the tracing hoo... | 5 | 5 | 1 | [{"id": "G0", "claim": "The processDdtrace helper is misleadingly named and should be renamed; the suggestion proposes processDDTrace and the reply proposes annotateSpanWithIntent as a better name.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "... | null |
DataDog__dd-trace-go__4238 | DataDog/dd-trace-go | 4,238 | defect | 92578a274d6ab7cdd1b59621115b953e3bf83862 | 71af6bc7f435eff9d45ad86d66dcd6b90e0c695f | fix(ddtrace/opentelemetry): fix ignored sampling decision from otel | ### What does this PR do?
This PR fixes the current faulty behavior of the tracer that do not respect the parent sampling decision when the parent span is not a DataDog span but an OTel one.
Fixes https://github.com/DataDog/dd-trace-go/issues/3639.
### Motivation
Old ER ticket [APMS-15887](https://datadogh... | diff --git a/ddtrace/opentelemetry/tracer.go b/ddtrace/opentelemetry/tracer.go
index a8caaf039e1..00bfeeafb37 100644
--- a/ddtrace/opentelemetry/tracer.go
+++ b/ddtrace/opentelemetry/tracer.go
@@ -166,3 +166,21 @@ func (c *otelCtxToDDCtx) SpanID() uint64 {
}
func (c *otelCtxToDDCtx) ForeachBaggageItem(_ func(k, v s... | 4 | 3 | 1 | [{"id": "G0", "claim": "Remove the stale \"// this test fails\" comment left on the Test_DDOpenTelemetryTracer assertion line.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add tests asserting that the values of IsSampled align with the values re... | null |
DataDog__dd-trace-go__4249 | DataDog/dd-trace-go | 4,249 | defect | 1a6f881c21ee90c07057e794e50fcdeb31cdb618 | 74109ec1eadd2c2ab5eb21eb885322a0757340ba | feat(tracer): add support for dynamically enabling and disabling Live Debugger | Add support for the "multiconfig" remote config convention, and add support for dynamically enabling dynamic instrumentation. Please see individual commits.
- [ ] Changed code has unit tests for its functionality at or near 100% coverage.
- [ ] [System-Tests](https://github.com/DataDog/system-tests/) covering this ... | diff --git a/ddtrace/tracer/remote_config.go b/ddtrace/tracer/remote_config.go
index 2a14dadb097..670bbec9ba3 100644
--- a/ddtrace/tracer/remote_config.go
+++ b/ddtrace/tracer/remote_config.go
@@ -11,6 +11,7 @@ import (
"fmt"
"io"
"regexp"
+ "sort"
"strings"
"sync"
"time"
@@ -23,10 +24,12 @@ import (
"git... | 8 | 3 | 0 | [{"id": "G0", "claim": "The Capability doc comment should not link to the private dd-source repository.", "category": "documentation", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "When every entry of the RC update is nil, the new merge path may not reset every config to its sta... | null |
DataDog__dd-trace-go__4290 | DataDog/dd-trace-go | 4,290 | defect | 7fa77493c97bbb76cbe3dd8354699abb132f209c | 6a3e35dda057dd2d9a23c04d5cf6026d0c7dc936 | feat(openfeature): add LRU cache for exposure deduplication | <!--
* New contributors are highly encouraged to read our
[CONTRIBUTING](/CONTRIBUTING.md) documentation.
* Commit and PR titles should be prefixed with the general area of the pull request's change.
-->
### What does this PR do?
<!--
* A brief description of the change being made with this pull request.
... | diff --git a/openfeature/doc.go b/openfeature/doc.go
index ab7c66c65ae..7e30f5d59d4 100644
--- a/openfeature/doc.go
+++ b/openfeature/doc.go
@@ -238,12 +238,39 @@
// If the default Remote Config setup fails, the provider creation will return
// an error asking you to call tracer.Start first.
//
+// # Exposure Events... | 4 | 4 | 0 | [{"id": "G0", "claim": "The cache should use a struct key type (exposureCacheKey with flagKey and targetingKey) to index the items map instead of building a \"flag|subject\" string, avoiding string allocations and accidental collisions when a flag key contains '|'.", "category": "design", "verdict": "supported", "prior... | null |
DataDog__dd-trace-go__4313 | DataDog/dd-trace-go | 4,313 | defect | e744f8a3ad333ce670f33398432eeb2551365e41 | 87be0c5465e429a9825badd389802af156ae5c29 | fix(tracer): use background context instead of panicking on nil ctx in ContextWithSpan | ### What does this PR do?
When `tracer.ContextWithSpan` receives a nil context, create a `context.Background()` instead of panicking. This is consistent with how `StartSpanFromContext` already handles nil contexts.
### Motivation
We spent nearly an hour with @igoragoli debugging a future contrib that was not showing... | diff --git a/ddtrace/tracer/context.go b/ddtrace/tracer/context.go
index 4fad8bfc5dd..d8caff0ea2b 100644
--- a/ddtrace/tracer/context.go
+++ b/ddtrace/tracer/context.go
@@ -15,6 +15,8 @@ import (
)
// ContextWithSpan returns a copy of the given context which includes the span s.
+//
+// ctx must be non-nil. If ctx ... | 2 | 2 | 0 | [{"id": "G0", "claim": "Add an explicit hard assertion (panic) for a nil ctx in ContextWithSpan instead of relying on the underlying API's panic, to make the behavior easier to explain.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Log a warning when Co... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.