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__dd-trace-go__4335
DataDog/dd-trace-go
4,335
defect
b38cf16eeb6f93e8c96b868160d9e174694333ad
3287dbf27efe189c115db748424e129553818797
refactor(instrumentation/mcp): replace `ddtrace` argument with `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? Renames the injected MCP tool argument used for intent capture from `ddtrace` to `tele...
diff --git a/contrib/mark3labs/mcp-go/intent_capture.go b/contrib/mark3labs/mcp-go/intent_capture.go index c59551ea54a..f3868cdd057 100644 --- a/contrib/mark3labs/mcp-go/intent_capture.go +++ b/contrib/mark3labs/mcp-go/intent_capture.go @@ -15,7 +15,7 @@ import ( "github.com/mark3labs/mcp-go/server" ) -func ddTrac...
1
1
0
[{"id": "G0", "claim": "The helper `processtelemetry` should be renamed to `processTelemetry` to follow proper Go style.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
DataDog__dd-trace-go__4338
DataDog/dd-trace-go
4,338
defect
af2fb41c52495fc7fd9d4e4cf91362fd01a83076
2f453757f6044acd5e121046aad4a595d2d9ff0e
refactor(tracer): encapsulate span mutex access behind helper methods
### What does this PR do? Refactors span lock management to eliminate all direct `span.mu` access outside `span.go`, improving encapsulation and making the codebase safer for lock assertion validation. This PR introduces conceptual helper methods that encapsulate atomic operations requiring locks, rather than exp...
diff --git a/ddtrace/tracer/abandonedspans_test.go b/ddtrace/tracer/abandonedspans_test.go index ab42b920ad5..a244950dd51 100644 --- a/ddtrace/tracer/abandonedspans_test.go +++ b/ddtrace/tracer/abandonedspans_test.go @@ -60,15 +60,8 @@ func assertProcessedSpans(assert *assert.Assertions, t *tracer, startedSpans, fi } ...
4
3
1
[{"id": "G0", "claim": "The pull request regresses BenchmarkStartSpan EXECUTION_TIME by +2.56%, above the 2% threshold.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The combined getSpanIDAndResource getter should be split into separate getSpanID a...
null
DataDog__dd-trace-go__4379
DataDog/dd-trace-go
4,379
defect
fa72b69e5371c19505a674205beb4e63f0dd9c0e
ba6b14df4f98b9ca7b24854eba1eb511c3c83a3e
feat(civisibility): add test.final_status tag for adjusted test outcomes
### What does this PR do? JIRA: SDTEST-2986 Adds a new `test.final_status` tag to CI Visibility test spans that indicates the final adjusted status for a test after considering all executions (including retries). This helps distinguish between the raw test outcome and the final computed result. The priority or...
diff --git a/internal/civisibility/constants/test_tags.go b/internal/civisibility/constants/test_tags.go index cd8c40dcf3e..55cf3ddfc1d 100644 --- a/internal/civisibility/constants/test_tags.go +++ b/internal/civisibility/constants/test_tags.go @@ -34,6 +34,10 @@ const ( // This constant is used to tag traces with th...
1
1
1
[{"id": "G0", "claim": "In the attempt-to-fix flow, calculateFinalStatus should report the test as failed when any of the retries failed (so a still-flaky attempt-to-fix test fails the build), but the quarantined/disabled -> pass priority order does not do that.", "category": "correctness", "verdict": "supported", "pri...
null
DataDog__dd-trace-go__4392
DataDog/dd-trace-go
4,392
defect
ee2355f30854d7a6a367909649804fca0648524b
fe4ce8eea8bd1ae14f82b9816acc94cc143398a0
feat(internal/config): change internalconfig behavior to use a fresh instance upon tracer creation
### What does this PR do? This PR adds a new function to the `internal/config` package allowing us to force rebuilding the internal config when required. Since the revamp any tracer swap would keep the same configuration without re-reading configuration providers and applying only programmatic configurations. ...
diff --git a/ddtrace/tracer/option.go b/ddtrace/tracer/option.go index aa90d40752c..44fd33c510f 100644 --- a/ddtrace/tracer/option.go +++ b/ddtrace/tracer/option.go @@ -287,7 +287,7 @@ const maxPropagatedTagsLength = 512 // and passed user opts. func newConfig(opts ...StartOption) (*config, error) { c := new(config...
3
1
0
[{"id": "G0", "claim": "The package could be simplified to always return a freshly-computed config instead of keeping a global singleton (and its mutex and internal synchronization), since each consumer should get a fresh instance computed from defaults/env vars.", "category": "design", "verdict": "uncertain", "priorit...
null
DataDog__dd-trace-go__4410
DataDog/dd-trace-go
4,410
defect
ab547c330dddeb33bbca974df6ffbdca00c86286
5ed7fe4598ceda99e2bcfb7050193b22ab998e62
fix(orchestrion): prevent GLS memory leak from unpaired executionTracedKey pushes
Every database transaction and certain tracer operations pushed executionTracedKey values onto the per-goroutine GLS stack without ever popping them. On long-lived HTTP goroutines handling thousands of requests, this caused unbounded memory growth (~8.6 MB/min at 6000 RPS). Add PopExecutionTraced to pair with WithExec...
diff --git a/contrib/database/sql/tx.go b/contrib/database/sql/tx.go index a3a0b8cebad..77021c84b4c 100644 --- a/contrib/database/sql/tx.go +++ b/contrib/database/sql/tx.go @@ -14,7 +14,7 @@ import ( var _ driver.Tx = (*tracedTx)(nil) -// tracedTx is a traced version of sql.Tx +// tracedTx is a traced version of s...
1
1
1
[{"id": "G0", "claim": "Storing globalinternal.PopExecutionTraced in span.taskEnd means GLSPopValue pops the goroutine-local executionTracedKey from whichever goroutine calls Span.finish, so finishing a span on a different goroutine than the one that started it leaks the original push and may remove an unrelated marker...
null
DataDog__dd-trace-go__4420
DataDog/dd-trace-go
4,420
defect
cf6194674f25d89a32d53e6b2615954d6c296555
fe0699a430e210bdc81f6601f8e8552024fedc07
feat(profiler): support the experimental goroutine leak profile
Go 1.26 added an experimental goroutine leak profiler. See the proposal in https://go.dev/issue/74609. This profiler collects tracebacks for goroutines which are permanently blocked on synchronization, e.g. a goroutine blocked on acquiring a locked mutex where that goroutine has the only remaining reference to the ...
diff --git a/profiler/compression.go b/profiler/compression.go index 0ca8a195568..b19964fcc33 100644 --- a/profiler/compression.go +++ b/profiler/compression.go @@ -61,7 +61,7 @@ func compressionStrategy(pt ProfileType, isDelta bool, config string) (compressi // uncompressed. func inputCompression(pt ProfileType, isD...
2
1
0
[{"id": "G0", "claim": "Because the new goroutine leak profile is captured concurrently with the heap profile (which must wait for a GC cycle), the heap profile can end up reporting the previous GC cycle rather than the most recent one; the reviewer asks that, in the long run, the goroutine leak profile be taken before...
null
DataDog__dd-trace-go__4446
DataDog/dd-trace-go
4,446
defect
a39a21d348b90dd2a93f1283cca0c5a85d0938f8
bcc2bc5d77c8ece7ad73db294e560a8da9a4844a
feat: change environment variable used to set ETP
<!-- * 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? Change envvar used to set ETP from `DD_TRACE_V1_PAYLOAD_FORMAT_ENABLED` (boole...
diff --git a/ddtrace/tracer/option.go b/ddtrace/tracer/option.go index 60bcc710848..d2c80726956 100644 --- a/ddtrace/tracer/option.go +++ b/ddtrace/tracer/option.go @@ -706,7 +706,9 @@ func loadAgentFeatures(agentDisabled bool, agentURL *url.URL, httpClient *http.C features.evpProxyV2 = true case "/v1.0/traces":...
1
1
0
[{"id": "G0", "claim": "The key DD_TRACE_AGENT_PROTOCOL_VERSION was edited into internal/env/supported_configurations.gen.go by hand and is no longer in sorted order, which will most likely confuse people when the file is regenerated and re-sorted.", "category": "maintainability", "verdict": "supported", "priority": "P...
null
DataDog__dd-trace-go__4461
DataDog/dd-trace-go
4,461
defect
69beee14d541e56fd6492db25d0ae03c597a1ea8
3032494e91a846d77016cc0d947af20eac817338
fix(tracer): incremental per-chunk encoding in payloadV1
### What does this PR do? Replace the "re-encode everything on each push" model with an append-only incremental approach: - Static fields (2–10) are encoded once on the first push using a persistent string table shared across all pushes. - Field 11 (chunks) uses a fixed-width array32 placeholder whose 4-byte cou...
diff --git a/ddtrace/tracer/payload_test.go b/ddtrace/tracer/payload_test.go index 9c7a3631bff..e15a4d24d48 100644 --- a/ddtrace/tracer/payload_test.go +++ b/ddtrace/tracer/payload_test.go @@ -388,6 +388,54 @@ func TestEmptyPayloadV1(t *testing.T) { assert.Empty(o) } +// TestPayloadV1IncrementalChunkEncoding verif...
1
1
0
[{"id": "G0", "claim": "The magic bitmap field-ID numbers (2–11) passed to the encoding calls in push should be named instead of used as bare literals.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
DataDog__dd-trace-go__4470
DataDog/dd-trace-go
4,470
defect
7a849eb98fd3e71256e8f046912e36f30f935ec1
5514993d5ea69f9a99eeffbaf28299412af5e741
feat(dsm): add kafka_cluster_id to confluent-kafka-go
## Summary Most DSM tracer instrumentations for Kafka enrich a kafka_cluster_id. This is useful because numerous generated metrics such as `data_streams.latency` and `data_streams.kafka.lag_messages` will automatically add this metric if present. In situations where people have the same topic names across multiple k...
diff --git a/contrib/confluentinc/confluent-kafka-go/kafka.v2/kafka.go b/contrib/confluentinc/confluent-kafka-go/kafka.v2/kafka.go index de97fc6da45..caef5d99954 100644 --- a/contrib/confluentinc/confluent-kafka-go/kafka.v2/kafka.go +++ b/contrib/confluentinc/confluent-kafka-go/kafka.v2/kafka.go @@ -7,6 +7,7 @@ packag...
8
6
4
[{"id": "G0", "claim": "The 10-second blocking ClusterID fetch in the consumer/producer wrappers is too long and should be shortened.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "kafkatrace.WithClusterID is a user-facing-style option that is only ...
null
DataDog__dd-trace-go__4475
DataDog/dd-trace-go
4,475
defect
5d4991babfaf78cdf4b9782d76ae53cef9f978d5
8737b1cfdb5be2bd55da18bfe367fafe5f61505a
fix(internal/remoteconfig): disable RC if disabled on the agent
### What does this PR do? Disables RC if the agent doesn't return `/v0.7/config` endpoint on `/info` check. ### Motivation Coherent behaviour as described in #4404. ### Reviewer's Checklist - [ ] Changed code has unit tests for its functionality at or near 100% coverage. - [ ] [System-Tests](https://git...
diff --git a/internal/remoteconfig/remoteconfig.go b/internal/remoteconfig/remoteconfig.go index c54f54b088c..706da98f1ee 100644 --- a/internal/remoteconfig/remoteconfig.go +++ b/internal/remoteconfig/remoteconfig.go @@ -173,6 +173,10 @@ type Client struct { lastError error lastConfigStates []*configState ...
1
1
0
[{"id": "G0", "claim": "The 404-based disabling of RC in the remoteconfig client could be simplified by checking at tracer startup whether the agent's /info Endpoints contain /v0.7/config.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
DataDog__dd-trace-go__4477
DataDog/dd-trace-go
4,477
defect
7a849eb98fd3e71256e8f046912e36f30f935ec1
68e76bf8dba2d09a46323f73ca9014d113105ded
feat(dsm): add kafka_cluster_id to segmentio/kafka-go integration
## Summary - Adds `kafka_cluster_id` support to the `segmentio/kafka-go` DSM integration, building on #4470 - Auto-fetches the Kafka cluster ID via async metadata request in `WrapReader`/`WrapWriter` - Plumbs cluster ID through DSM edge tags, offset tracking, and span tags Tested this manually and via unit/integr...
diff --git a/contrib/confluentinc/confluent-kafka-go/kafka.v2/kafka.go b/contrib/confluentinc/confluent-kafka-go/kafka.v2/kafka.go index de97fc6da45..caef5d99954 100644 --- a/contrib/confluentinc/confluent-kafka-go/kafka.v2/kafka.go +++ b/contrib/confluentinc/confluent-kafka-go/kafka.v2/kafka.go @@ -7,6 +7,7 @@ packag...
1
1
0
[{"id": "G0", "claim": "Use atomic.Value instead of the sync.RWMutex guarding the single clusterID field, marking it with +checkatomic, to simplify the code without sacrificing safety.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
DataDog__dd-trace-go__4481
DataDog/dd-trace-go
4,481
defect
5d4991babfaf78cdf4b9782d76ae53cef9f978d5
e0ec718de278ff719e72e75c7e3c0e0d95cda5fc
fix(ddtrace/tracer): cache trace ID hex encoding
### What does this PR do? Introduces "caching" to trace ID hex encoding. ### Motivation Avoid the allocation of million of strings, as it was recreated every time the trace ID was required in its hexadecimal string form. ### Reviewer's Checklist - [x] Changed code has unit tests for its functionality at ...
diff --git a/ddtrace/tracer/span_test.go b/ddtrace/tracer/span_test.go index 1f75c1f7803..64b84477f0c 100644 --- a/ddtrace/tracer/span_test.go +++ b/ddtrace/tracer/span_test.go @@ -86,7 +86,7 @@ func TestNilSpan(t *testing.T) { // nil span should return a nil context assertions.Nil(ctx) assertions.Equal(TraceIDZe...
2
2
0
[{"id": "G0", "claim": "The separate emptyTraceID variable and the type mismatch between it and traceID are unnecessary; Empty() should compare against a literal empty array instead.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The cacheHex method shou...
null
DataDog__dd-trace-go__4489
DataDog/dd-trace-go
4,489
defect
f0b4b2484aba47d87f787bb40349ea71218be26b
6e577d2a63f1ac6798cf55eaa7ae6e6f20cecacd
feat(openfeature): add flag evaluation tracking via OTel Metrics
## Motivation Per the [RFC "Flag evaluations tracking for APM tracers"](https://docs.google.com/document/d/1yOdu6FU3Fw-PMhNlSfqawJ5r6f3tSGomjlJVwdtqpZc/edit?tab=t.0#heading=h.yx4xd78f94da) (Oleksii Shmalko, 2026-01-20): we want to collect a metric for flag evaluations to track usage of flags. This data powers the FF...
diff --git a/openfeature/flageval_metrics.go b/openfeature/flageval_metrics.go new file mode 100644 index 00000000000..9b17538cb86 --- /dev/null +++ b/openfeature/flageval_metrics.go @@ -0,0 +1,113 @@ +// Unless explicitly stated otherwise all files in this repository are licensed +// under the Apache License Version 2...
4
4
2
[{"id": "G0", "claim": "It would be cleaner if record() accepted the evaluation result instead of three error-prone string parameters.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Recording inside evaluate() misses evaluations because provider evaluate...
null
DataDog__dd-trace-go__4492
DataDog/dd-trace-go
4,492
defect
bd8a42c309eee628e285c09bfde86a55b608b833
34b5c68ce11405e41cf98545ce42c08919987e1f
feat(ddtrace/tracer): add tracer.StartSpanFromPropagatedContext to start a span from a propagated context
### What does this PR do? Adds `tracer.StartSpanFromPropagatedContext` to start spans from propagated context. Implements variant D from RFC: https://docs.google.com/document/d/12s7DyHu4AqoC2u_-1aFhod1BcStRAHFlDn1tFuERlMM/edit?tab=t.0. It's A+C because using generics and restricting the carriers to `TextMapReader...
diff --git a/ddtrace/tracer/api.txt b/ddtrace/tracer/api.txt index 0590486e5d8..ad5ccfe36ab 100644 --- a/ddtrace/tracer/api.txt +++ b/ddtrace/tracer/api.txt @@ -335,6 +335,7 @@ type TextMapCarrier map[string]string // File: tracer.go // Package Functions +func ContinueSpan(string, C, ...StartSpanOption) (*Span, err...
9
8
4
[{"id": "G0", "claim": "Rename ContinueSpan — it starts a new span (child or root) rather than continuing an existing one — to a name in the StartSpanFrom* family, suggested StartSpanFromCarrier and later agreed as StartSpanFromPropagatedContext.", "category": "design", "verdict": "supported", "priority": "P2", "scope"...
null
DataDog__dd-trace-go__4495
DataDog/dd-trace-go
4,495
defect
0fb2232a695329fb76d33c9ffed98a2422df13a9
6ee9b546ce010ff12ad6ea9338dc3e7fde02cbbd
feat(openfeature): subscribe to FFE_FLAGS during tracer RC setup
### What does this PR do? Subscribes to FFE_FLAGS during `tracer.startRemoteConfig()` so feature flag configurations are included in the very first RC poll, eliminating the extra poll interval latency when `NewDatadogProvider()` is called after `tracer.Start()`. Also fixes several correctness issues discovered du...
diff --git a/ddtrace/tracer/remote_config.go b/ddtrace/tracer/remote_config.go index c287595174b..65913f17e08 100644 --- a/ddtrace/tracer/remote_config.go +++ b/ddtrace/tracer/remote_config.go @@ -17,9 +17,11 @@ import ( "sync" "time" + "github.com/DataDog/dd-trace-go/v2/internal" "github.com/DataDog/dd-trace-g...
11
9
2
[{"id": "G0", "claim": "Invoking the provider callback (in forwardingCallback and AttachCallback) while holding rcState.Lock() can block RC processing and risks deadlocks; copy the callback/buffered update under lock and invoke it after releasing the mutex.", "category": "correctness", "verdict": "opposed", "priority":...
null
DataDog__dd-trace-go__4497
DataDog/dd-trace-go
4,497
defect
5793394303518e25b72d5cc1a69e09fca059f571
0055256c15a8e35bacaf71e23dc69dd5e84ff52a
feat(ddtrace/tracer): reduce allocations on ETP/v1 trace protocol
### What does this PR do? Adds a `payload` pool and reuse logic for ETP/v1 payload internals. ### Motivation Reduce allocations as described below. Here's the benchmark comparison table extracted from the PR: ## ETP/v1 Payload Benchmark: Before vs After (with pool) | Scenario | ns/op (before) | ns/op ...
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index dd84a1e2799..1a86ba360b3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,7 +11,7 @@ variables: # This base image is created here: https://gitlab.ddbuild.io/DataDog/apm-reliability/benchmarking-platform/-/jobs/1422209418 BASE_CI_IMAGE: 486234852809.dkr.ecr...
1
1
0
[{"id": "G0", "claim": "A comparison table (benchmark results) should be added to the PR description so the changes are easier to reason about.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}]
null
DataDog__dd-trace-go__4523
DataDog/dd-trace-go
4,523
defect
2d3b9858ea33d9fc25f712490526eb3b0d76f8b9
ef998e2747e42ec306f65e403e14ba4a03d26097
fix(tracer): only set _dd.p.ksr after agent rates are received
### What does this PR do? Fixes `_dd.p.ksr` (Knuth Sampling Rate) to only be set on spans when the agent has provided sampling rates via `readRatesJSON()`. Previously, ksr was unconditionally set in `prioritySampler.apply()`, including when the rate was the initial client-side default (1.0) before any agent response a...
diff --git a/ddtrace/tracer/sampler.go b/ddtrace/tracer/sampler.go index 69a7cf1bb04..d929287470a 100644 --- a/ddtrace/tracer/sampler.go +++ b/ddtrace/tracer/sampler.go @@ -137,10 +137,11 @@ const rampUpInterval = time.Second // prioritySampler holds a set of per-service sampling rates and applies // them to spans. ...
4
4
0
[{"id": "G0", "claim": "The pull request acquires the sampler lock a second time in apply; a getRateLocked helper (with the internal locking assert package) should be added so the rate and the loaded state are read under a single lock acquisition.", "category": "design", "verdict": "supported", "priority": "P2", "scope...
null
DataDog__dd-trace-go__4533
DataDog/dd-trace-go
4,533
defect
0957c7c63dfe65eacef9f5cc8ca06213a6c4ab91
9bfafcca7f078319e09823ec037678e41ff082dc
chore(profiler): remove testHooks and runProfile from tests
The profiler unit tests still have many places where they hook into pacakge-internal details. I've wanted to fix this for a while as it frustrates me every time I try to make changes. I ran into it again recently and I figure we should rip the band-aid off. This PR removes the testHook object, and removes all cal...
diff --git a/profiler/profile.go b/profiler/profile.go index a1db05d84c6..59340a8ec81 100644 --- a/profiler/profile.go +++ b/profiler/profile.go @@ -14,6 +14,7 @@ import ( "fmt" "io" "runtime" + "runtime/pprof" "runtime/trace" "time" @@ -107,7 +108,7 @@ var profileTypes = map[ProfileType]profileType{ r...
1
1
0
[{"id": "G0", "claim": "Considering the state of this profile type, the goroutine wait profile type could also be considered for removal.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}]
null
DataDog__dd-trace-go__4551
DataDog/dd-trace-go
4,551
defect
5093b47419c9af5054333ece748adb1d03c393b9
aaffa3fd1180f88401f5685287e11ac487653d75
feat: track service source for manually assigned spans
Track service name added with SetTag and span start option ServiceName under _dd.svc_src:m, value used for java and python too. NB this is an internal field used to track service overrides and potentially remap them or skip ### Motivation <!-- * What inspired you to submit this pull request? * Link any related...
diff --git a/ddtrace/tracer/span.go b/ddtrace/tracer/span.go index 266f4b4107c..f25837c75f2 100644 --- a/ddtrace/tracer/span.go +++ b/ddtrace/tracer/span.go @@ -165,7 +165,7 @@ type Span struct { // +checklocks:mu integration string `msg:"-"` // where the span was started from, such as a specific contrib or "manual...
2
1
1
[{"id": "G0", "claim": "Setting serviceSource in the ext.ServiceName branch of setMetaInit makes _dd.svc_src nondeterministic when both ext.ServiceName and ext.KeyServiceSource are provided on span start, since tags are applied by iterating a Go map so whichever key is visited last wins and an explicit source may be ov...
null
DataDog__dd-trace-go__4558
DataDog/dd-trace-go
4,558
defect
2da39d5f1757b00db9323e50485070ab33b2c2ef
a806d43457ff24f4df68105fee4892ced43094af
fix(datastreams): early flush + throughput limit for transaction buffer
## Summary Fixes transaction tracking at high throughput with a two-tier approach: 1. **Early flush at 512KB** (existing commits): When a single bucket's transaction bytes exceed 512KB, force-flush it immediately rather than waiting for the normal 10s tick. This keeps individual payloads small enough for the downstre...
diff --git a/internal/datastreams/processor.go b/internal/datastreams/processor.go index 380f1cb62ba..d13ce0a0749 100644 --- a/internal/datastreams/processor.go +++ b/internal/datastreams/processor.go @@ -31,10 +31,11 @@ import ( const ( bucketDuration = time.Second * 10 defaultServiceName = "unnamed-go-servic...
2
2
0
[{"id": "G0", "claim": "The new comment's estimate that a transaction averages ~20 bytes looks wrong and the effective size limit becomes stricter (512KB instead of the previous 1MiB), so the stated ~26k transactions/sec capacity may be overstated.", "category": "documentation", "verdict": "supported", "priority": "P2"...
null
DataDog__dd-trace-go__4560
DataDog/dd-trace-go
4,560
defect
6ae97634913edd0008803b37143833fc36934dae
1afc785f83881f869984aedecd0218d7279726cf
feat(dsm): add kafka_cluster_id to Sarama integrations
## Summary - This follows practically the same pattern as the [confluent-kafka-go](https://github.com/DataDog/dd-trace-go/pull/4470) and [kafka-go](https://github.com/DataDog/dd-trace-go/pull/4477) PRs. However, this integration requires the user to supply the bootstrap servers explicitly in order to obtain the cluste...
diff --git a/contrib/IBM/sarama/consumer.go b/contrib/IBM/sarama/consumer.go index 7ca8c669b8d..d27ea2fcd9d 100644 --- a/contrib/IBM/sarama/consumer.go +++ b/contrib/IBM/sarama/consumer.go @@ -18,6 +18,15 @@ import ( type partitionConsumer struct { sarama.PartitionConsumer dispatcher dispatcher + closeAsync []func...
2
1
0
[{"id": "G0", "claim": "In the Sarama wrap functions the inverted early-return guard should be replaced by the explicit positive condition so it is clear that startClusterIDFetch(cfg) only happens when the broker addresses are available and DSM is enabled.", "category": "design", "verdict": "supported", "priority": "P3...
null
DataDog__dd-trace-go__4574
DataDog/dd-trace-go
4,574
defect
516cca3e843fc695364e3920d7ad163bbc577e1a
f0934124cebe19a41736daf2e2afca80c5210f84
feat(telemetry): add stable session identifier headers
## Summary Implements the [Stable Service Instance Identifier RFC](https://docs.google.com/document/d/1ECKj9_NnwaKYtFqm3p3Rlpicx5d-OQcdj9kI2jvRqVU) for Go instrumentation telemetry. - **`DD-Session-ID`**: always present on every telemetry request, set to the current `runtime_id` - **`DD-Root-Session-ID`**: prese...
diff --git a/internal/globalconfig/globalconfig.go b/internal/globalconfig/globalconfig.go index 24baef7f43a..46f689be030 100644 --- a/internal/globalconfig/globalconfig.go +++ b/internal/globalconfig/globalconfig.go @@ -9,6 +9,7 @@ package globalconfig import ( "math" + "os" "sync" "github.com/DataDog/dd-tr...
4
3
0
[{"id": "G0", "claim": "Overwriting _DD_ROOT_GO_SESSION_ID directly via os.Setenv has no precedent in dd-trace-go; anywhere that wants the root session ID could instead query globalconfig.RootSessionId().", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "init...
null
DataDog__dd-trace-go__4575
DataDog/dd-trace-go
4,575
defect
f12caf8fc5c31d7b1285c0cd7681924ab9fd8908
15f1d08ef171a348b177f100ad4de4e5aae72c28
fix(ddtrace/tracer): prioritize user-provided settings for dogstatsd addr
<!-- * 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/ddtrace/tracer/option.go b/ddtrace/tracer/option.go index 5bc0b5c95a8..a26d3a6e2e9 100644 --- a/ddtrace/tracer/option.go +++ b/ddtrace/tracer/option.go @@ -479,7 +479,7 @@ func newConfig(opts ...StartOption) (*config, error) { } if c.statsdClient == nil { // configure statsd client - addr := resolv...
2
2
1
[{"id": "G0", "claim": "The new test function should be named TestResolveDogstatsdAddr instead of Test_resolveDogstatsdAddr (drop the leading underscore).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "For any env var already supported in ddtrac...
null
DataDog__dd-trace-go__4576
DataDog/dd-trace-go
4,576
defect
5ff9ae4ce155b493846cee358c5fb6da35192f82
c5801c65a88ef91f89f0f8cf90ef09c3b2ecf3bf
fix(ddtrace/tracer): pre-compute `_dd.p.dm` numeric value at write-time
### What does this PR do? Moves the `strconv.ParseInt` call for `_dd.p.dm` (decision maker) out of the v1 payload flush path and into the write path. A `dm uint32` field is added to the `trace` struct. It is kept in sync with `propagatingTags[keyDecisionMaker]` at all mutation sites (`setPropagatingTagLocked`, `u...
diff --git a/ddtrace/tracer/payload_v1.go b/ddtrace/tracer/payload_v1.go index 520dac1a10c..ca70c6fc4c6 100644 --- a/ddtrace/tracer/payload_v1.go +++ b/ddtrace/tracer/payload_v1.go @@ -10,7 +10,6 @@ import ( "encoding/binary" "errors" "fmt" - "strconv" "sync" "sync/atomic" @@ -189,16 +188,7 @@ func (p *payl...
3
3
2
[{"id": "G0", "claim": "The early-return guard makes the decision-maker handling read as the happy path; wrap it in a positive `if key == keyDecisionMaker` conditional instead, as suggested.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ref...
null
DataDog__dd-trace-go__4580
DataDog/dd-trace-go
4,580
defect
f3970b875dea7c7f023504978edce28ebf0d791f
f91d1cb28eabef9d1d5a1e323242206f4f321e4c
fix(llmobs/experiment): propagate task error to experiment span on finish
Problem ------- When an experiment task returns an error, the experiment span is always finished with a nil error, causing all records to show Status: OK in the LLMObs experiment UI regardless of whether the task succeeded or failed. The root cause is that `defer span.Finish(illmobs.FinishSpanConfig{Error: err})` ...
diff --git a/llmobs/experiment/experiment.go b/llmobs/experiment/experiment.go index 5719b5e85f3..8481f11833a 100644 --- a/llmobs/experiment/experiment.go +++ b/llmobs/experiment/experiment.go @@ -315,7 +315,7 @@ func (e *Experiment) runTaskForRecord(ctx context.Context, llmobs *illmobs.LLMOb ) span, ctx := llmob...
1
1
1
[{"id": "G0", "claim": "Add a test that reproduces the original bug (task error not propagated to the experiment span on finish) to prevent regressions.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
DataDog__dd-trace-go__4583
DataDog/dd-trace-go
4,583
defect
520f82575398c1c0837d26f762745676884b5260
49d0937105035ced53a3ca35e3649f52fe002b69
feat(config): add OTLP trace export configuration support
### What does this PR do? Adds **configuration support** for OTLP trace export mode. Actual OTLP trace export implementation will be done in a follow-up PR. - See: [RFC](https://docs.google.com/document/d/1AsUrJxjJavLvSG33kUAJLYzGU8IYgrnf1SMbFDsuGmo/edit?pli=1&tab=t.avgpmfl6f0c6#heading=h.nqkivnomx6oe) When `...
diff --git a/ddtrace/tracer/option.go b/ddtrace/tracer/option.go index 2db0a10de2c..43e6d6fb305 100644 --- a/ddtrace/tracer/option.go +++ b/ddtrace/tracer/option.go @@ -256,9 +256,6 @@ type config struct { // llmobs contains the LLM Observability config llmobs llmobsconfig.Config - - // temporary field to represe...
3
2
1
[{"id": "G0", "claim": "The IsSet doc comment starts with a stray extra slash ('// / IsSet ...'), which will show in the godoc, and should read '// IsSet returns true if any configuration source provides a non-empty value for the key.'", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "i...
null
DataDog__dd-trace-go__4586
DataDog/dd-trace-go
4,586
defect
ee1fdc0d2c1191f72b8a74c9eaef177978eb6104
7cf57c53e9e7932f2aa2d92c67b4b7e87657cc9e
chore: improvements to ETP
<!-- * 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? 1. Set dummy values for when serialization fails to prevent failures during de...
diff --git a/ddtrace/tracer/payload_test.go b/ddtrace/tracer/payload_test.go index f13001b911e..f791c061fe8 100644 --- a/ddtrace/tracer/payload_test.go +++ b/ddtrace/tracer/payload_test.go @@ -293,6 +293,8 @@ func TestPayloadV1SpanLinkTraceID(t *testing.T) { span.spanLinks = []SpanLink{ {TraceID: 123, TraceIDHigh:...
2
2
2
[{"id": "G0", "claim": "The log.Warn call added to encodeField's default branch increases the function's inlining cost (801 vs 667, budget 80) and alters how it can inline its own callees; wrap the log.Warn in a go:noinline-tagged helper to reduce the cost.", "category": "performance", "verdict": "supported", "priority...
null
DataDog__dd-trace-go__4590
DataDog/dd-trace-go
4,590
defect
5ff9ae4ce155b493846cee358c5fb6da35192f82
6ebda74fa3b7ba19fc9e1e501d5ad23e4409351b
fix(openfeature): improve FFE eval metrics cross-tracer consistency
### What does this PR do? Fixes consistency issues in FFE flag evaluation metrics to align with OpenFeature telemetry conventions and other SDK implementations: 1. **Map `errNoConfiguration` to `PROVIDER_NOT_READY` error code** - Previously returned `GENERAL`, now returns `provider_not_ready` - Aligns wit...
diff --git a/openfeature/flageval_metrics.go b/openfeature/flageval_metrics.go index 60bd2e5644a..ea7262d6dfd 100644 --- a/openfeature/flageval_metrics.go +++ b/openfeature/flageval_metrics.go @@ -101,14 +101,23 @@ func (m *flagEvalMetrics) record( flagKey string, details of.InterfaceEvaluationDetails, ) { + // Us...
2
1
0
[{"id": "G0", "claim": "Besides the NUMERIC-to-INTEGER conversion it just fixed, JSON variant values may also contain arbitrary values including integers and get cast to integer, so that case should also be handled, probably worth adding to test cases.", "category": "testing", "verdict": "uncertain", "priority": "P1", ...
null
DataDog__dd-trace-go__4608
DataDog/dd-trace-go
4,608
defect
520f82575398c1c0837d26f762745676884b5260
0a66bd37b0143e99764c199afc03954298b25877
feat(llmobs): prompt tracking
<!-- * 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/contrib/mark3labs/mcp-go/intent_capture.go b/contrib/mark3labs/mcp-go/intent_capture.go index 35d02352f15..f4837e48e44 100644 --- a/contrib/mark3labs/mcp-go/intent_capture.go +++ b/contrib/mark3labs/mcp-go/intent_capture.go @@ -111,5 +111,5 @@ func processTelemetry(ctx context.Context, telemetryVal map[str...
1
1
1
[{"id": "G0", "claim": "Since Template and ChatTemplate are documented as alternatives, it might be worth adding a guard like Python's that enforces their mutual exclusivity, because setting both would produce a payload with both keys.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "int...
null
DataDog__dd-trace-go__4633
DataDog/dd-trace-go
4,633
defect
75616b6f529926784fbaafb3d0d7cd2d454fac76
da564686252864534a40cb4039bd45ccbdb48ede
fix(telemetry): app-extended-heartbeat event not correctly reporting entire config state
### What does this PR do? Replace the push-based config accumulation in `heartbeatEnricher` with a pull model that reads the full config state on demand from the `configuration` data source. **Problem:** `heartbeatEnricher` had an `AppStarted` case to capture startup configs, but it was unreachable because `appSt...
diff --git a/internal/telemetry/client_test.go b/internal/telemetry/client_test.go index 016c09a36fa..b4311a05c41 100644 --- a/internal/telemetry/client_test.go +++ b/internal/telemetry/client_test.go @@ -179,7 +179,75 @@ func TestClientFlush(t *testing.T) { assert.Equal(t, transport.RequestTypeAppClientConfigurat...
3
3
0
[{"id": "G0", "claim": "The new AppClientConfigurationChange handling in heartbeatEnricher.Transform should carry an explanatory comment.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Re-injecting configs via an extra AppClientConfigurationChange...
null
DataDog__dd-trace-go__4640
DataDog/dd-trace-go
4,640
defect
bfe344aeba3403c90b3d16c7b15502d040c7ed29
8eb44c08ab15e236d69eb6fd23c931cd63ac61c3
refactor(config): add cross-product gate to prevent conflicting programmatic overrides
<!-- * 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 a cross-product gate to internal/config that prevents different products (t...
diff --git a/ddtrace/tracer/option.go b/ddtrace/tracer/option.go index cc1a13d40bd..9688b4743dc 100644 --- a/ddtrace/tracer/option.go +++ b/ddtrace/tracer/option.go @@ -392,27 +392,27 @@ func newConfig(opts ...StartOption) (*config, error) { if c.internalConfig.Env() == "" { if v, ok := globalTags["env"]; ok { ...
3
1
0
[{"id": "G0", "claim": "SetServiceMapping and SetFeatureFlags perform no cross-product conflict check, so when the shared collection already holds entries a later product's call silently overwrites or prioritizes them; the reviewer asks why the gate doesn't apply here too.", "category": "correctness", "verdict": "oppos...
null
DataDog__dd-trace-java__10339
DataDog/dd-trace-java
10,339
defect
bff8837e3e5f04a64f43d884f529241a91e0978b
5fadff5141ed34fc65be4cd856888cdf30652452
Introducing TagMap EntryReader
# What Does This Do Introduces EntryReader as a low allocation means to traverse either a LegacyTagMap or an OptimizedTagMap TagMap now extends Iterable&lt;EntryReader&gt; rather than Iterable&lt;Entry&gt; # Motivation EntryReader provides a way to traverse a map with minimal allocation - avoiding the need to cre...
diff --git a/dd-trace-core/src/main/java/datadog/trace/core/taginterceptor/TagInterceptor.java b/dd-trace-core/src/main/java/datadog/trace/core/taginterceptor/TagInterceptor.java index 3da653c5398..f2c6640d721 100644 --- a/dd-trace-core/src/main/java/datadog/trace/core/taginterceptor/TagInterceptor.java +++ b/dd-trace-...
4
2
0
[{"id": "G0", "claim": "Asks whether the TODO-marked optimization of forEach to take advantage of EntryReader should be handled as part of this pull request.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Asks whether the instanceof checks in TagValueCon...
null
DataDog__dd-trace-java__10340
DataDog/dd-trace-java
10,340
defect
671cc8cdbf75d6f52a1b0fbe6d9ecb9562532224
f13392e02e701ba55f2619fa7f5e7d460f458ec6
Remove remaining use of `JAVA_X_HOME`
# What Does This Do This PR allows to completely get rid of setting up JAVA_X_HOME on local dev environment. The `stable` special word has special handling though, that is using Gradle internal toolchain registry, and fallback to env vars. However, this mainly affect CI. # Motivation Easier project setup # Additi...
diff --git a/BUILDING.md b/BUILDING.md index 6fc6ed031d2..a9190f60902 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -29,14 +29,9 @@ or on Windows: Your output should look something like the following: ``` -ℹ️ Checking required JVMs: -✅ JAVA_HOME is set to /Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home. ...
10
7
0
[{"id": "G0", "claim": "The CONTRIBUTING.md instruction that the default JVM for command-line builds should be Java 21 should be removed or made unnecessary because Gradle should pick the JVM automatically.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl...
null
DataDog__dd-trace-java__10501
DataDog/dd-trace-java
10,501
defect
76b5b63bcb2b79e249298e8b84f1704781d76388
e72546a44ef2d4e0c08d1072bfbd757d40b4c7fc
Reuse TagMap.Entry objects in BaseDecorator
# What Does This Do Reuses Entry objects analyticsSampleRate & component # Motivation Reduces allocation & garbage collection - which improves throughput under load # Additional Notes # Contributor Checklist - Format the title [according the contribution guidelines](https://github.com/DataDog/dd-trace-jav...
diff --git a/dd-java-agent/agent-bootstrap/src/main/java/datadog/trace/bootstrap/instrumentation/decorator/BaseDecorator.java b/dd-java-agent/agent-bootstrap/src/main/java/datadog/trace/bootstrap/instrumentation/decorator/BaseDecorator.java index 122e76c5fbd..00db59986af 100644 --- a/dd-java-agent/agent-bootstrap/src/m...
2
1
1
[{"id": "G0", "claim": "The decorator tests are failing because the component tag entry is now cached and re-used instead of always being set via `setTag`.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "It would be cleaner to convert the abstract compon...
null
DataDog__dd-trace-java__10503
DataDog/dd-trace-java
10,503
defect
76b5b63bcb2b79e249298e8b84f1704781d76388
aa1f66bf39ef243a3727ed4fadea8aa5f8589ec3
Reuse SpanKind Entry in ClientDecorator
# What Does This Do Caches & reuses SpanKind Entry in ClientDecorator # Motivation Reduce allocation & garbage collection - improves throughput under load # Additional Notes # Contributor Checklist - Format the title [according the contribution guidelines](https://github.com/DataDog/dd-trace-java/blob/mas...
diff --git a/dd-java-agent/agent-bootstrap/src/main/java/datadog/trace/bootstrap/instrumentation/decorator/ClientDecorator.java b/dd-java-agent/agent-bootstrap/src/main/java/datadog/trace/bootstrap/instrumentation/decorator/ClientDecorator.java index 5c3dd0aaae6..f52b6093307 100644 --- a/dd-java-agent/agent-bootstrap/s...
2
1
0
[{"id": "G1", "claim": "The new span-kind caching code in ClientDecorator is not formatted the way spotless expects (e.g. `if ( kindEntry == null )`).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G2", "claim": "The span kind entry could have been cached in t...
null
DataDog__dd-trace-java__10716
DataDog/dd-trace-java
10,716
defect
6ece63b6df2565cd66d88388e7bae2e3190ad27d
6336c01085d0f467fbaa180bca89b7519a8b65aa
Migrate JsonMapperTest to Java
# What Does This Do Migrate `JsonMapperTest` from Groovy to Java, using the `/migrate-groovy-to-java` Claude skill. Add a recommendation to the Claude skill for the AI to check that the test count remained the same after migration. # Motivation This is part of a broader initiative to migrate all testing in thi...
diff --git a/.claude/skills/migrate-groovy-to-java/SKILL.md b/.claude/skills/migrate-groovy-to-java/SKILL.md index dd6556e53f9..a86c56d6711 100644 --- a/.claude/skills/migrate-groovy-to-java/SKILL.md +++ b/.claude/skills/migrate-groovy-to-java/SKILL.md @@ -5,16 +5,16 @@ description: migrate test groovy files to java ...
6
5
0
[{"id": "G0", "claim": "The loop body would be more human readable if the repeated entry.getKey()/entry.getValue() calls were extracted into local variables.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "The argument-provider method names (and ...
null
DataDog__dd-trace-java__10718
DataDog/dd-trace-java
10,718
defect
cf6146b8f247bc2b98434eebca0a61bf0406f887
bbdaded2b827e6dbf6ec53f1168a72633236e505
Add tracing support for native method calls via Java FFM API
# What Does This Do Introduces automatic tracing of native (downcall) method invocations made through the Java Foreign Function & Memory (FFM) API (available since JDK 22). - Adds a new configuration option `trace.native.methods` that follows the same `library[method1,method2]` / `library[*]` format as `trace....
diff --git a/dd-java-agent/agent-bootstrap/src/main/java11/datadog/trace/bootstrap/instrumentation/ffm/FFMNativeMethodDecorator.java b/dd-java-agent/agent-bootstrap/src/main/java11/datadog/trace/bootstrap/instrumentation/ffm/FFMNativeMethodDecorator.java new file mode 100644 index 00000000000..b7ce858c031 --- /dev/null...
2
2
1
[{"id": "G0", "claim": "Main issue to address before merging is whether the startup cost can be further minimized, which mostly relates to adding `jdk.internal.loader.*` to the allow list for instrumentation.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cl...
null
DataDog__dd-trace-java__10814
DataDog/dd-trace-java
10,814
defect
92d7ae699c2e3b12a7e5202f254c14696bd933ae
4d811cb6206724f0ab0f2aa514090f3203a2144a
Sample usage of `@TableTest`.
# What Does This Do - Adds `@TableTest` support for tests in components/json. - Migrates simple parameterized cases from `@MethodSource` and `@ValueSource` to `@TableTest`. - Keeps complex or parser-sensitive scenarios as dedicated `@Test` methods or existing `@MethodSource`-based tests where appropriate. - adds ...
diff --git a/.claude/skills/migrate-groovy-to-java/SKILL.md b/.claude/skills/migrate-groovy-to-java/SKILL.md index 4ae8ac292cf..ecbbe64a4b7 100644 --- a/.claude/skills/migrate-groovy-to-java/SKILL.md +++ b/.claude/skills/migrate-groovy-to-java/SKILL.md @@ -13,8 +13,8 @@ Migrate test Groovy files to Java using JUnit 5 ...
6
4
0
[{"id": "G0", "claim": "Link the issue promised by the added `// temporary disable spotless, will open issue to fix this.` comment (and, if relevant, the special-chars comment) instead of leaving them unlinked.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1",...
null
DataDog__dd-trace-java__10828
DataDog/dd-trace-java
10,828
defect
c04d61b318f5bfb2f9e7a093864ece4309c2c6c4
e092c44de437fa23b9399a07be04f99edd70a5b7
Avoid ArrayList copying from TraceInterceptors
# What Does This Do Avoid ArrayList allocations from TraceInterceptors `CoreTracer.interceptCompleteTrace` uses a new class `SpanList`. `SpanList` is just an `ArrayList` that exposes the internal `modCount`. By checking if the `List` returned by `TraceInterceptor` is the original `SpanList` and checking that `m...
diff --git a/dd-trace-core/src/main/java/datadog/trace/core/CoreTracer.java b/dd-trace-core/src/main/java/datadog/trace/core/CoreTracer.java index c58d1ff277d..53bb5c2e534 100644 --- a/dd-trace-core/src/main/java/datadog/trace/core/CoreTracer.java +++ b/dd-trace-core/src/main/java/datadog/trace/core/CoreTracer.java @@ ...
5
1
0
[{"id": "G0", "claim": "The pre-existing defensive copy of the incoming trace in interceptCompleteTrace should be removed (or justified), since the incoming List was already copied from the span buffer and a new ArrayList does not prevent mutation by a TraceInterceptor anyway.", "category": "design", "verdict": "uncert...
null
DataDog__dd-trace-java__11040
DataDog/dd-trace-java
11,040
defect
b266e2d0c22cce6450b2192654813b1cfad1a688
da921984b2a210ac30717ebda139eb072ba8d7b1
Add flag evaluation metrics via OTel counter and OpenFeature Hook
# What Does This Do Records a `feature_flag.evaluations` OTel counter metric on every flag evaluation via an OpenFeature `finallyAfter` hook. The hook captures all evaluation paths including type mismatches that occur above the provider level in the OpenFeature SDK pipeline. Creates a dedicated `SdkMeterProvider` wit...
diff --git a/products/feature-flagging/feature-flagging-api/README.md b/products/feature-flagging/feature-flagging-api/README.md new file mode 100644 index 00000000000..31e68572a91 --- /dev/null +++ b/products/feature-flagging/feature-flagging-api/README.md @@ -0,0 +1,82 @@ +# dd-openfeature + +Datadog OpenFeature Prov...
3
2
0
[{"id": "G0", "claim": "The README should not instruct customers to add the OpenFeature SDK dependency explicitly, since it is a transitive dependency of the provider and pinning it forces customers to ensure compatibility.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"},...
null
DataDog__dd-trace-java__11130
DataDog/dd-trace-java
11,130
defect
42f154d2f63d6dac689776702554a20a34424c35
7525934416421d36873a25c9e6a8acc3fb49be7a
Fix ClassCastException in CSI generator when advice captures multiple partial arguments
# What Does This Do Fix CSI generator by removing the incorrect `.sorted()` call from partial-argument index generation. # Motivation `AdviceGeneratorImpl.writeStackOperations` called `Stream.sorted()` without a comparator on a stream of `ArgumentSpecification` objects. Because `ArgumentSpecification` does not imp...
diff --git a/buildSrc/call-site-instrumentation-plugin/src/main/java/datadog/trace/plugin/csi/impl/AdviceGeneratorImpl.java b/buildSrc/call-site-instrumentation-plugin/src/main/java/datadog/trace/plugin/csi/impl/AdviceGeneratorImpl.java index 14efc4a42d4..e40fa10993e 100644 --- a/buildSrc/call-site-instrumentation-plug...
1
1
1
[{"id": "G0", "claim": "Sorting advice.getArguments() by pointcut index makes parameterIndices follow pointcut index order instead of the advice method's declared parameter order, so advices that intentionally reorder captures (e.g. @Argument(1) then @Argument(0)) would get arguments in the wrong order, which can lead ...
null
DataDog__dd-trace-java__11174
DataDog/dd-trace-java
11,174
defect
081af53226659b4c71e8921c00c487db64b958c7
f340ebfab9b4c5b469395f38b89f062c9ef37037
Add server.request.body.filenames AppSec address for Undertow and Play
# What Does This Do Adds support for the `server.request.body.filenames` AppSec address in the Undertow and Play instrumentation modules, so the WAF can inspect multipart file upload filenames. ## Undertow (`undertow-2.0`) - `MultiPartUploadHandlerInstrumentation`: adds `requestFilesFilenames` callback alongside the...
diff --git a/dd-java-agent/instrumentation/play/play-appsec-2.5/src/main/java/datadog/trace/instrumentation/play25/appsec/BodyParserHelpers.java b/dd-java-agent/instrumentation/play/play-appsec-2.5/src/main/java/datadog/trace/instrumentation/play25/appsec/BodyParserHelpers.java index f68cb7fbad0..8e8fcbd733d 100644 ---...
4
4
4
[{"id": "G0", "claim": "When AppSec is configured with only server.request.body.filenames subscribers, the new Undertow filename callback is unreachable because the advice has already returned at the requestBodyProcessed() null check, so filename rules neither emit nor block; fetch and run the filename callback indepen...
null
DataDog__dd-trace-java__11191
DataDog/dd-trace-java
11,191
defect
aeb83d6118ca44065fa50f8125caf8a922fda834
cea32dd239b48b786f63423731c50240b7424740
Add classloader exclusions for drools generated classes
# What Does This Do Excludes in `ClassloaderMatchers` the most commonly used drools classloaders used to load dynamically generated classes from rules. This is usually done by `PackageClassloader`. I added a list of commonly used classloaders (hoping that does not overload too much the matchers) and a test module...
diff --git a/dd-java-agent/agent-tooling/src/main/java/datadog/trace/agent/tooling/bytebuddy/matcher/ClassLoaderMatchers.java b/dd-java-agent/agent-tooling/src/main/java/datadog/trace/agent/tooling/bytebuddy/matcher/ClassLoaderMatchers.java index 954354880fd..6ca5da14e16 100644 --- a/dd-java-agent/agent-tooling/src/mai...
2
1
1
[{"id": "G0", "claim": "Do not skip class loading for org.drools.core.common.ProjectClassLoader (and its IBM subclass), because DDClassFileTransformer.transform returning null for every class from that loader suppresses all Datadog instrumentation for user classes in a KIE module, not just generated rule classes; keep ...
null
DataDog__dd-trace-java__11205
DataDog/dd-trace-java
11,205
defect
4a446d1347f11ca56b926ed8505194b8e2c487b7
00e1844b54a3586303087758cd207cb6ba92e6fc
Add support for case insensitivity file names
# What Does This Do Add support for case-insensitive path matching for line probes. When a probe path contains different casing (e.g., Controllers/DebuggerController.java vs actual controllers/DebuggerController.java), we should match them case-insensitively. this allows to support case-insensitive filesystem (Wind...
diff --git a/dd-java-agent/agent-debugger/src/main/java/com/datadog/debugger/agent/DebuggerTransformer.java b/dd-java-agent/agent-debugger/src/main/java/com/datadog/debugger/agent/DebuggerTransformer.java index ffcb5a006f0..3f883b0bba2 100644 --- a/dd-java-agent/agent-debugger/src/main/java/com/datadog/debugger/agent/D...
1
1
1
[{"id": "G0", "claim": "Use locale-invariant normalization (toLowerCase(Locale.ROOT)) for all filename/path case folding in TransformerDefinitionMatcher, because folding with the JVM default locale makes matching locale-dependent and in locales such as Turkish a probe path that only differs by case can still fail to ma...
null
DataDog__dd-trace-java__11212
DataDog/dd-trace-java
11,212
defect
e2d98c03c3b5d72f1c7e43841e4c0728661200a4
b7a1a336132567b7e500fb09ae599ff6cd81cece
Fix charset decoding for server.request.body.files_content in commons-fileupload
# What Does This Do - Introduces `MultipartContentDecoder` in `internal-api/src/main/java/datadog/trace/api/http/` — a shared utility that decodes multipart file content bytes using the charset declared in each part's `Content-Type` header - `FileItemContentReader.readContent()` now delegates to `MultipartContentDe...
diff --git a/dd-java-agent/instrumentation/commons-fileupload-1.5/src/main/java/datadog/trace/instrumentation/commons/fileupload/FileItemContentReader.java b/dd-java-agent/instrumentation/commons-fileupload-1.5/src/main/java/datadog/trace/instrumentation/commons/fileupload/FileItemContentReader.java index 99e76558d96.....
5
4
3
[{"id": "G0", "claim": "The fallbacks in MultipartContentDecoder should use the machine default charset in both places instead of the hardcoded UTF_8 no-charset default and ISO_8859-1 decode-failure fallback, which the reviewer finds weird.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "int...
null
DataDog__dd-trace-java__11224
DataDog/dd-trace-java
11,224
defect
e6cac64dfd7e17662f53a9eb09dcec50c75f3dc9
b15ea597e47555394d79f62ef1cd03e9fea704df
Implement OpenTelemetry Logs API
# What Does This Do Implements the OpenTelemetry Logs API (since OpenTelemetry 1.27) along with a batched collector. This will be used by an upcoming PR to export OTel logs over OTLP. # Contributor Checklist - Format the title according to [the contribution guidelines](https://github.com/DataDog/dd-trace-ja...
diff --git a/dd-java-agent/agent-otel/otel-bootstrap/src/main/java/datadog/trace/bootstrap/otel/common/OtelInstrumentationScope.java b/dd-java-agent/agent-otel/otel-bootstrap/src/main/java/datadog/trace/bootstrap/otel/common/OtelInstrumentationScope.java index a1b5e238f22..28e912d8a54 100644 --- a/dd-java-agent/agent-o...
13
7
1
[{"id": "G0", "claim": "setBody(String) writes bodyType = 1, which OtlpLogRecord defines as BOOLEAN_BODY (0 is STRING_BODY), so string log bodies would be treated as booleans by code branching on bodyType.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim...
null
DataDog__dd-trace-java__11245
DataDog/dd-trace-java
11,245
defect
e6cac64dfd7e17662f53a9eb09dcec50c75f3dc9
a09c99e6ad01ab04b9d1b4113c99c0504ea37bf0
Migrate OtlpWriterCombinedTest from groovy to junit
# Motivation A previous [PR](https://github.com/DataDog/dd-trace-java/pull/11200) introduced new test file OtlpWriterCombinedTest.groovy. This PR migrates that test to junit as per the ongoing migration. # Additional Notes # Contributor Checklist - Format the title according to [the contribution guidelines](h...
diff --git a/dd-trace-api/src/main/java/datadog/trace/api/ConfigDefaults.java b/dd-trace-api/src/main/java/datadog/trace/api/ConfigDefaults.java index fd6c384de21..936ecc7767d 100644 --- a/dd-trace-api/src/main/java/datadog/trace/api/ConfigDefaults.java +++ b/dd-trace-api/src/main/java/datadog/trace/api/ConfigDefaults....
2
1
0
[{"id": "G0", "claim": "The test could be simplified by annotating the test method with @WithConfig instead of manually injecting the config via injectSysConfig.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The old OtlpWriterCombinedTest.groov...
null
DataDog__dd-trace-java__11269
DataDog/dd-trace-java
11,269
defect
5fd81cc37a6c52652e290bb5be3548723f407ba2
caf1beed1c297f2ad1a162489691e3f3bae5e610
Improve JPMS module opener
# What Does This Do Got a code review feedback by claude on a previous PR in which the JPMS module opener was introduced. I let it do some cleanup and migrate a couple of tests to junit. # Motivation # Additional Notes # Contributor Checklist - Format the title according to [the contribution guidelines](...
diff --git a/dd-java-agent/agent-bootstrap/src/main/java/datadog/trace/bootstrap/instrumentation/java/module/JpmsHelper.java b/dd-java-agent/agent-bootstrap/src/main/java/datadog/trace/bootstrap/instrumentation/java/module/JpmsHelper.java index f926a3500e4..490d7d8130e 100644 --- a/dd-java-agent/agent-bootstrap/src/mai...
4
4
1
[{"id": "G0", "claim": "In the Java 16+ disabled forked test, the static initializer setting `dd.trace.java-module.enabled` is not a reliable replacement for the old `configurePreAgent()` hook, because `AbstractInstrumentationTest`'s inherited `@BeforeAll` may run before the subclass static init, so `InstrumenterConfig...
null
DataDog__dd-trace-java__11275
DataDog/dd-trace-java
11,275
defect
16c6a5fd1fed71cef6c35f69122f19f5ee242757
298086ae690bb2e1e09bc5b5bcdcd303186c7566
Remove support for full configuration as RC record
# What Does This Do In early days we started to have one big configuration per service with all probe definitions. we migrated for one probe per RC record since then. We do not have to support the big configuration record as this is no longer distributed by RemoteConfig. Remove also appliedConfiguration as this map i...
diff --git a/dd-java-agent/agent-debugger/src/main/java/com/datadog/debugger/agent/ConfigurationUpdater.java b/dd-java-agent/agent-debugger/src/main/java/com/datadog/debugger/agent/ConfigurationUpdater.java index 0f3aeba5eed..36688bac057 100644 --- a/dd-java-agent/agent-debugger/src/main/java/com/datadog/debugger/agent...
2
2
2
[{"id": "G0", "claim": "getAppliedDefinitions() dereferences currentConfiguration unconditionally even though it is only assigned after the first successful accept(...), so DebuggerAgent.addReportToFlare() can throw a NullPointerException and fail flare diagnostics collection, whereas the previous implementation return...
null
DataDog__dd-trace-java__11297
DataDog/dd-trace-java
11,297
defect
2e6ce6ce0c2cb84d4f48bde3248a7b62558de74a
cd83b4a913f666de5b1e120c1ac4e937e748ef89
Introduce OTel SPI Metrics
# What Does This Do With the end goal to track which SPIs are used frequently with dd-trace-java, this PR introduces the skeleton needed to report this metrics. Notable tags are `spi_class` and `source`. # Motivation # Additional Notes # Contributor Checklist - Format the title according to [the contributi...
diff --git a/dd-java-agent/instrumentation/graal/graal-native-image-20.0/src/main/java/datadog/trace/instrumentation/graal/nativeimage/NativeImageGeneratorRunnerInstrumentation.java b/dd-java-agent/instrumentation/graal/graal-native-image-20.0/src/main/java/datadog/trace/instrumentation/graal/nativeimage/NativeImageGen...
2
1
1
[{"id": "G0", "claim": "In any runtime with OTel SPI providers present the metric will never be emitted, because no production code calls recordSpiDetected so the periodic action drains an always-empty queue; wire the SPI discovery/loading path to call it before enabling the action.", "category": "correctness", "verdic...
null
DataDog__dd-trace-java__11313
DataDog/dd-trace-java
11,313
defect
d73cdc93d389b4a5d6c5b32f03a69d643e8bd9cf
cf170244a2738d7731fa32765fade20dfb9d10d5
fix(aws-lambda): force placeholder resource so the Lambda Extension drops dd-tracer-serverless-span
## Summary The Datadog Lambda Extension drops the placeholder invocation span by comparing `span.resource == "dd-tracer-serverless-span"` (`bottlecap/src/traces/trace_processor.rs::filter_span_from_lambda_library_or_runtime`). The dedup is what lets the inferred `aws.lambda` span (which the end-invocation handshake ...
diff --git a/dd-java-agent/instrumentation/aws-java/aws-java-lambda-handler-1.2/src/main/java/datadog/trace/instrumentation/aws/v1/lambda/LambdaHandlerInstrumentation.java b/dd-java-agent/instrumentation/aws-java/aws-java-lambda-handler-1.2/src/main/java/datadog/trace/instrumentation/aws/v1/lambda/LambdaHandlerInstrume...
1
1
1
[{"id": "G0", "claim": "Overwriting the resource unconditionally at method exit with MANUAL_INSTRUMENTATION can clobber a user-set resource name of the same priority on the Lambda span; consider resetting only when the current priority is framework-level (e.g. <= HTTP_FRAMEWORK_ROUTE).", "category": "correctness", "ver...
null
DataDog__dd-trace-java__11323
DataDog/dd-trace-java
11,323
defect
0015e8c33325f107df14dc123d52b751aed90c7d
dd779943f885c7758041d8b86df7a6c07b7c8e5e
Fix bugs in GenerationalUtf8Cache constructor and access-time handling
## What Does This Do Fixes three bugs and a misleading comment in the UTF-8 caches. None of these issues impacted how the cache is currently used, but could pose a problem in the future. - **`GenerationalUtf8Cache.getUtf8(String, long accessTimeMs)`** captured `this.accessTimeMs` into a local and used that f...
diff --git a/communication/src/main/java/datadog/communication/serialization/GenerationalUtf8Cache.java b/communication/src/main/java/datadog/communication/serialization/GenerationalUtf8Cache.java index 036abfe6e79..4c48643e6d0 100644 --- a/communication/src/main/java/datadog/communication/serialization/GenerationalUtf...
2
1
0
[{"id": "G0", "claim": "Renaming the public refreshAcessTime() method removes the symbol from GenerationalUtf8Cache, so external or out-of-tree code compiled against the previous artifact would fail at runtime or compile time; keep a deprecated forwarding alias to refreshAccessTime().", "category": "correctness", "verd...
null
DataDog__dd-trace-java__11380
DataDog/dd-trace-java
11,380
defect
b75a4a6b0bbc38703c5cdf950e2124637425b16c
3355865ad5564cb8cc0418bc60013b0a225c6644
Use bitmask SpanKindFilter for per-span eligibility in metrics aggregator
## What Does This Do Replaces the `Set<String>`-based span.kind eligibility checks in `ConflatingMetricsAggregator` with a new `SpanKindFilter` bitmask primitive. Each filter is an `int` mask indexed by the span.kind ordinal already cached on `DDSpanContext`; checking eligibility on `DDSpan` becomes a context byte-r...
diff --git a/dd-trace-core/src/jmh/java/datadog/trace/common/metrics/ConflatingMetricsAggregatorBenchmark.java b/dd-trace-core/src/jmh/java/datadog/trace/common/metrics/ConflatingMetricsAggregatorBenchmark.java index 971ee5cf6e4..b9a2f7f8c54 100644 --- a/dd-trace-core/src/jmh/java/datadog/trace/common/metrics/Conflatin...
8
6
1
[{"id": "G0", "claim": "When a span builder removes span.kind in the same ledger (withTag(SPAN_KIND, value) then withTag(SPAN_KIND, null)), DDSpanContext.setAllTags(TagMap.Ledger) drops the tag but leaves the cached ordinal set, so the new isKind eligibility check counts such spans even though the current span.kind is ...
null
DataDog__dd-trace-java__9557
DataDog/dd-trace-java
9,557
defect
c2aec92b8616c96845f6b721046f3837c9fbf994
5ad4f5ee26f6d82cc8250a135d3354b4b1dc4674
Prepare for JEP 500
# What Does This Do This PR adds methods that may mutate final fields to the list of ForbiddenAPIs. It also identifies current use-cases of these methods and whether or not the usage will need to be changed. # Motivation Let's "[Prepare to Make Final Mean Final](https://openjdk.org/jeps/500)". Starting in Java...
diff --git a/dd-java-agent/instrumentation/akka/akka-http/akka-http-10.0/src/main/java/datadog/trace/instrumentation/akkahttp/appsec/Bug4304Instrumentation.java b/dd-java-agent/instrumentation/akka/akka-http/akka-http-10.0/src/main/java/datadog/trace/instrumentation/akkahttp/appsec/Bug4304Instrumentation.java index b18...
1
1
0
[{"id": "G0", "claim": "The new JEP 500 forbidden-API rules also catch mutation of fields that are not final, so the comments near the rules (the @defaultMessage and the @SuppressForbidden guidance) should be more precise about when overriding is allowed.", "category": "documentation", "verdict": "supported", "priority...
null
DataDog__dd-trace-rs__102
DataDog/dd-trace-rs
102
defect
b9bcd9b8d0a6a72058b0c4926981450e9d8b290f
56672d8c1e442f5b3324f93562451073fa458c9c
feat(config): actually disable tracing on trace_enabled false
# Motivation Because we still created and registered spans in the sampler even though the tracer should be disabled, setting dd_trace_enabled = false did not actually disable tracing. I've added checks in multiple places of the tracer to make sure this does not happen again
diff --git a/datadog-opentelemetry/src/lib.rs b/datadog-opentelemetry/src/lib.rs index bd98fc9e..78a9f019 100644 --- a/datadog-opentelemetry/src/lib.rs +++ b/datadog-opentelemetry/src/lib.rs @@ -80,10 +80,6 @@ use sampler::Sampler; use span_processor::{DatadogSpanProcessor, TraceRegistry}; use text_map_propagator::Da...
3
2
0
[{"id": "G0", "claim": "Add a comment in the sampler's should_sample explaining what the disabled early return does.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The registry work done by the span processor is unnecessary when tracing is disable...
null
DataDog__dd-trace-rs__144
DataDog/dd-trace-rs
144
defect
09364ab5bcbbd60b239157c38487c1c213ca65c2
8474cc33d434b934248a08d001d0338506d3e485
feat(logs): add support for otlp logs export
# What does this PR do? Adds OpenTelemetry Logs API support to the `datadog-opentelemetry` crate, mirroring the existing metrics implementation. # Motivation - Provides a consistent API for logs export matching the metrics API (`logs()` mirrors `metrics()`) - Enables OTLP-based logs export via gRPC and HTTP/p...
diff --git a/Cargo.toml b/Cargo.toml index ab5a32f0..e95c49a9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,13 +30,16 @@ libdd-common = { version = "1.0.0", default-features = false } opentelemetry_sdk = { version = "0.31.0", features = [ "trace", "metrics", + "logs", ], default-features = false } ope...
4
4
1
[{"id": "G0", "claim": "The default for OTEL_EXPORTER_OTLP_TIMEOUT should not have changed from 7500 to 10000, and 10s seems too high; the author should explain or revisit the change.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The default for the DD_...
null
DataDog__dd-trace-rs__171
DataDog/dd-trace-rs
171
defect
976b00c37645e55d8eccc13fe371090e8997e08d
645b96b7ee447a26b7c528cbde539edb52376adf
docs: improve log/metric API documentation
# What does this PR do? * Document usage and initilaization of the logs and metrics API better. * Recommend going through the `log` crate for the logging API, as the otel API is not made to be used directly * Document that the metrics and logs API are behind feature gates
diff --git a/Cargo.lock b/Cargo.lock index ae770d48..d86d60f4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -479,8 +479,10 @@ dependencies = [ "libdd-data-pipeline", "libdd-telemetry 2.0.0", "libdd-trace-utils", + "log", "lru", "opentelemetry", + "opentelemetry-appender-log", "opentelemetry-otlp", "opentele...
2
2
0
[{"id": "G0", "claim": "The docs.rs metadata key should be `features` (plural), not `feature` — the reviewer suggests `features = [\"logs\", \"metrics\"]`.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new Log API examples in the README and the...
null
DataDog__dd-trace-rs__19
DataDog/dd-trace-rs
19
defect
dda9f01435e0604f1077202662f4ef4fbf9ff3ab
8113cfa8166e57de981840f45b76141d75cc5e61
feat: add a Datadog SpanProcessor instead of a SpanExporter
# Motivations To attach the sampling decision correctly to traces, we need to flush the whole trace chunk together with the root chunk. The SpanExporter gets passed SpanData as it arrives, without any groupping by Trace, which mean we cannot use it. # Changes This PR modifies the datadog components in the foll...
diff --git a/datadog-opentelemetry/src/lib.rs b/datadog-opentelemetry/src/lib.rs index f7693a74..00be0760 100644 --- a/datadog-opentelemetry/src/lib.rs +++ b/datadog-opentelemetry/src/lib.rs @@ -3,10 +3,10 @@ mod span_conversion; mod span_exporter; +mod span_processor; use opentelemetry_sdk::trace::SdkTracerProv...
5
3
0
[{"id": "G0", "claim": "The single-lock TraceRegistry could instead use something like the DashMap crate (a sharded concurrent map) to reduce lock contention.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "`otel_span_to_dd_span` should not be `pub` since i...
null
DataDog__dd-trace-rs__75
DataDog/dd-trace-rs
75
defect
c6297872da1ee30c987bdfd635d0e53be3f31634
488a01c5e4218151ee00ac074fd6206a2032e1b0
feat(span registry): fix span registration when using the otel API
# Motivations This PR fixes four bugs: * When using the tracing API, since Otel spans are only materialised when they are closed, and not as soon as they are started we had issues with the TraceRegistry. Single spans would be opened and closed, without having a parent registered and then flushed since they are th...
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 13beedfe..5a35a264 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -55,13 +55,13 @@ jobs: - name: "[${{ steps.rust-version.outputs.version}}] test agent integration tests" if: runner.os == 'Linux' ...
4
3
0
[{"id": "G0", "claim": "The comment this pull request adds should spell \"later\" rather than \"latter\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asks for a comment explaining why spans with no sampling priority set are decided...
null
DataDog__dd-trace-rs__79
DataDog/dd-trace-rs
79
defect
097749f547b46f19e0710fcfe323aaa387b87f11
54cc99d29fe41ef3d2e16d225aec1eba3ea307ae
feat(otel_mappings): reduce memory allocations
# Motivation The otel mapping code allocates a lot. It wraps everything in a ByteString, which causes non static data to go in an Arc, furthermore all string fields on the otel spans needed to be copied to have a static lifetime. This PR tries to remediate to that by borrowing more data instead of copying a realloc...
diff --git a/Cargo.lock b/Cargo.lock index 0e27ad2a..3f1dd948 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -847,11 +847,14 @@ dependencies = [ name = "datadog-opentelemetry-mappings" version = "0.0.1" dependencies = [ + "criterion", + "datadog-opentelemetry-mappings", "datadog-trace-utils", "dd-trace", "opentel...
2
2
2
[{"id": "G0", "claim": "The PR inadvertently changed the span transformation logic: the computed resource changed and the tests are failing.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The meta-key guard's condition was inverted by a stray `!` (`...
null
DataDog__dd-trace-rs__89
DataDog/dd-trace-rs
89
defect
b8e95c587a5c41fc9c64e54096025159e1df3050
dcbb76cd89c0dd42aa5aeb77e6320c01d357b681
feat(remote_config): send RC updates via telemetry (sampling rules)
# What does this PR do? Get the `id` of the last RC update and use it to notify the configuration change via telemetry: - `ApmTracingConfig` struct modified to include the `id` field received in the RC response - RC tests changed accordingly - Add `telemetry::notify_configuration_update` method to notify the c...
diff --git a/datadog-opentelemetry/tests/integration_tests/opentelemetry_api.rs b/datadog-opentelemetry/tests/integration_tests/opentelemetry_api.rs index d998bfcd..bcd500bf 100644 --- a/datadog-opentelemetry/tests/integration_tests/opentelemetry_api.rs +++ b/datadog-opentelemetry/tests/integration_tests/opentelemetry_...
2
2
1
[{"id": "G0", "claim": "ConfigItems should carry their own config_id and use it to construct the Configuration in get_configuration, rather than having callers pass a config_id argument to fill one of the returned fields.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "...
null
DataDog__dd-trace-rs__90
DataDog/dd-trace-rs
90
defect
6b6d8a30e9da644e1bf1ee0b8d8ba937ff5f9f97
17262211a58ff6db027f24844327b235c9db3cef
feat(benches): extraction benchmark
# What does this PR do? Add `extract_benchmark` for `datadog` and `tracecontext` headers # Additional Notes After some attempts, it seems there is no obvious improvements in the extraction part, at least as in the injection part
diff --git a/dd-trace-propagation/Cargo.toml b/dd-trace-propagation/Cargo.toml index 351bde60..71f8c03c 100644 --- a/dd-trace-propagation/Cargo.toml +++ b/dd-trace-propagation/Cargo.toml @@ -39,6 +39,10 @@ dd-trace-propagation = { path = ".", features = ["test-utils"] } name = "inject_benchmark" harness = false +[[...
1
1
0
[{"id": "G0", "claim": "In BenchExtractor::get the unconditional `key.to_lowercase()` allocation accounts for roughly 5% of the memory and 5% of the wall time in the Datadog benchmark cases, so it should only lowercase keys that contain uppercase characters.", "category": "performance", "verdict": "supported", "priorit...
null
DataDog__java-dogstatsd-client__104
DataDog/java-dogstatsd-client
104
defect
ad47973556c4b96890a5e6e4f01c4f4ff0248d7b
289edfd19fa457ee4abf497b1a74889733e6d18b
[java] add back support for old constructors
The oid constructor overloading was a bit of a mess, but with a copy constructor and the builder we should have managed to keep the codebase more or less clean, and we can deprecate but keep these constructors around. We should probably add some tests to ensure these are all 100% backward compatible and safe.
diff --git a/src/main/java/com/timgroup/statsd/NonBlockingStatsDClient.java b/src/main/java/com/timgroup/statsd/NonBlockingStatsDClient.java index a4f5cd64..e25fb9f7 100644 --- a/src/main/java/com/timgroup/statsd/NonBlockingStatsDClient.java +++ b/src/main/java/com/timgroup/statsd/NonBlockingStatsDClient.java @@ -234,6...
1
1
1
[{"id": "G0", "claim": "The shallow copy constructor shares `statsDSender` with the source client, so it is submitted to `client.executor` and not `this.executor`, and shutting down the copy may not shut down `statsDSender`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
DataDog__java-dogstatsd-client__105
DataDog/java-dogstatsd-client
105
defect
ad47973556c4b96890a5e6e4f01c4f4ff0248d7b
d5cd46b604f2cf627616325dd9276635486acc05
[client] reduce the number of allocations
This is an adaptation of #74 by @njhill by which we take the same principles and apply them to the new client architecture to reduce the overhead of allocations on the client, and consequently on the client application. Still WIP - a couple of things went wrong after a rebase, so a few things still pending fixes.
diff --git a/src/main/java/com/timgroup/statsd/Message.java b/src/main/java/com/timgroup/statsd/Message.java new file mode 100644 index 00000000..95bd7200 --- /dev/null +++ b/src/main/java/com/timgroup/statsd/Message.java @@ -0,0 +1,13 @@ +package com.timgroup.statsd; + +interface Message { + /** + * Write this ...
14
8
1
[{"id": "G0", "claim": "The CharsetEncoder and NumberFormat instances are not threadsafe, so a dedicated instance of each should live per worker in the sender task class (which would also allow reusing the CharBuffers as in the original PR).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope"...
null
DataDog__java-dogstatsd-client__109
DataDog/java-dogstatsd-client
109
defect
fd4a32e4addfa198d818df035f0c3d1c0d7bafbc
f30e8c1a0ec22f6585a3bda02e491db355441dc3
[telemetry] allow a different remote destination for telemetry stats
This is useful for testing, will typically be unused by customers.
diff --git a/src/main/java/com/timgroup/statsd/NonBlockingStatsDClient.java b/src/main/java/com/timgroup/statsd/NonBlockingStatsDClient.java index 174bb814..6f6b1123 100644 --- a/src/main/java/com/timgroup/statsd/NonBlockingStatsDClient.java +++ b/src/main/java/com/timgroup/statsd/NonBlockingStatsDClient.java @@ -161,8...
4
4
3
[{"id": "G0", "claim": "The telemetry processor and telemetry sender created for the separate telemetry destination are never submitted to the executor, so they would never run.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The telemetry sender sho...
null
DataDog__java-dogstatsd-client__131
DataDog/java-dogstatsd-client
131
defect
09d7ed55e2b92049e74e10e2bc579f63d8178ddc
5b674cda7ea34486774290345300bd5c331d795a
[telemetry] dev-mode; additional metrics for better troubleshooting
This PR adds a dev-mode to the client telemetry that should better help debug metric submission, and more importantly metric aggregation. This is an initial catalog of dev-mode telemetry metrics, but more may be added in the future.
diff --git a/src/main/java/com/timgroup/statsd/NonBlockingStatsDClient.java b/src/main/java/com/timgroup/statsd/NonBlockingStatsDClient.java index c323f8a2..873ab1cd 100644 --- a/src/main/java/com/timgroup/statsd/NonBlockingStatsDClient.java +++ b/src/main/java/com/timgroup/statsd/NonBlockingStatsDClient.java @@ -94,6 ...
4
3
0
[{"id": "G0", "claim": "The private sendMetric method is now just a passthrough to send and could be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The commented-out devMode block in reset() should be either uncommented or removed.", "c...
null
DataDog__java-dogstatsd-client__169
DataDog/java-dogstatsd-client
169
defect
a21800450ec1890de20fe0fe04dea66a5b1d4af5
dcfe5aad194d8d818abaaef0586a91c55c455049
Add named pipe support for windows
This PR adds named pipe support for windows machines. Named pipes are similar to unix domain sockets. This PR supports submitting metrics to Datadog in Azure App Services (https://github.com/DataDog/datadog-aas-extension). The main changes are: * Abstracting `DatagramChannel` into the `ClientChannel` interface * A...
diff --git a/.circleci/config.yml b/.circleci/config.yml index e370cd42..341ad39e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,5 +1,8 @@ version: 2.1 +orbs: + win: circleci/windows@2.4.1 + commands: create_custom_cache_lock: description: "Create custom cache lock for java version." @@...
8
7
1
[{"id": "G0", "claim": "The 'could not send stat entirely' error message should keep the address, perhaps via a getter on the clientChannel.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The imports in ClientChannel.java are unused and should b...
null
DataDog__java-dogstatsd-client__188
DataDog/java-dogstatsd-client
188
defect
54f01ab385018c9c2dd91c4c2f56b8ce0338f334
4f17cae0869ffa260bfcfc4f748688d28c490ada
feat: origin detection with container ID field (dogstatsd 1.2)
### What does this PR do? <!-- 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. Note: In some cases, one person's "bug" is another perso...
diff --git a/.gitignore b/.gitignore index 64d86c2d..a506f68c 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,6 @@ build # rbenv for pimpmychangelog .ruby-version + +# vscode +.vscode/* diff --git a/src/main/java/com/timgroup/statsd/ContainerID.java b/src/main/java/com/timgroup/statsd/ContainerID.java new fil...
7
7
1
[{"id": "G0", "claim": "Editor-specific entries like `.vscode/*` belong in a developer's global gitignore rather than this repository's .gitignore, so the pull request should drop them.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The parser s...
null
DataDog__java-dogstatsd-client__203
DataDog/java-dogstatsd-client
203
defect
6c8a74edeece513ae5ca325e2b778c02cfeceaa0
01650c1a542ae9b73cc2f446f8cae16f4bedb9cb
Address message aggregation overhead
We frequently see high overhead in message aggregation: ![Screenshot 2022-09-28 at 13 26 45](https://user-images.githubusercontent.com/16439049/192850725-2997ad96-37ec-407c-a4ba-9a68d69d5ea7.png) This PR consists of 3 parts: 1. Use `Map.putIfAbsent` to avoid doubling the work done in `Map.get` then `Map.put` (...
diff --git a/src/main/java/com/timgroup/statsd/AlphaNumericMessage.java b/src/main/java/com/timgroup/statsd/AlphaNumericMessage.java index db9d543f..3341181c 100644 --- a/src/main/java/com/timgroup/statsd/AlphaNumericMessage.java +++ b/src/main/java/com/timgroup/statsd/AlphaNumericMessage.java @@ -1,8 +1,5 @@ package ...
7
4
3
[{"id": "G0", "claim": "Integer.MIN_VALUE is a valid hash value and therefore inappropriate as the sentinel for the cached-hash field; the reviewer also questions whether the caching pays for itself at all once putIfAbsent is used.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introdu...
null
DataDog__java-dogstatsd-client__232
DataDog/java-dogstatsd-client
232
defect
dfc4d3b7567b254504fd3094358ed0db46e3dd41
73bf9fb88e77a3c648f64fc9b585fe1602ff38a3
[CONTINT-1132] Send in-<inode> using the cgroup controller when container-id cannot be retrieved
Implementation of https://github.com/DataDog/datadog-go/pull/291 but in Java This Pull Request implements the support of Origin Detection when the container-id is unavailable from inside the application container only with cgroupv2. It first retrieves the cgroup node path by parsing proc/self/cgroup which is form...
diff --git a/src/main/java/com/timgroup/statsd/CgroupReader.java b/src/main/java/com/timgroup/statsd/CgroupReader.java index 31baa4b7..886556e7 100644 --- a/src/main/java/com/timgroup/statsd/CgroupReader.java +++ b/src/main/java/com/timgroup/statsd/CgroupReader.java @@ -1,62 +1,108 @@ package com.timgroup.statsd; +i...
6
5
1
[{"id": "G0", "claim": "The javadoc on the block-commented method says it parses the file and returns the container ID, which does not match what the method does.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The condition that skips the inode fa...
null
DataDog__java-dogstatsd-client__236
DataDog/java-dogstatsd-client
236
defect
645501eca28f55ae7fc443e2589146dbe14599a3
a7a49e89b44711b6fb37c6a6dd9c60e7b2e7f599
perf: Do not allocate when computing metadata size
Intern code from Guava to compute the encoded length of an utf8 string and use it to compute the size of the metadata for the multi valued message wihtout allocating.
diff --git a/src/main/java/com/timgroup/statsd/NonBlockingDirectStatsDClient.java b/src/main/java/com/timgroup/statsd/NonBlockingDirectStatsDClient.java index eec0c48b..67a926d2 100644 --- a/src/main/java/com/timgroup/statsd/NonBlockingDirectStatsDClient.java +++ b/src/main/java/com/timgroup/statsd/NonBlockingDirectSta...
1
1
1
[{"id": "G0", "claim": "Instead of throwing an IllegalArgumentException on unpaired surrogates, encodedLength should match the replacement behavior of the actual UTF-8 encoder used by StatsDProcessor.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
DataDog__java-dogstatsd-client__241
DataDog/java-dogstatsd-client
241
defect
c18559c89e24bd2e407a2c23dfd3608a831a2977
0a8e8f239001887b742d9cf85008c25d7f88b477
Origin Detection: Send both container ID and entity ID
We would like customers to be able to retrieve container tags even when DD_ENTITY_ID is set. The current behavior does not send the container-id if the entity id is set. This PR implements the same changes seen in these PRs: https://github.com/DataDog/datadog-go/pull/300 https://github.com/DataDog/datadogpy/pull/8...
diff --git a/src/main/java/com/timgroup/statsd/NonBlockingStatsDClient.java b/src/main/java/com/timgroup/statsd/NonBlockingStatsDClient.java index a710ed66..e946ac26 100644 --- a/src/main/java/com/timgroup/statsd/NonBlockingStatsDClient.java +++ b/src/main/java/com/timgroup/statsd/NonBlockingStatsDClient.java @@ -276,7...
3
3
0
[{"id": "G0", "claim": "The extra space in `final String entity_value = \"foo-entity\";` in test_entity_id_and_container_id should be removed (double space after `=`).", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The extra space in `final String entity...
null
DataDog__java-dogstatsd-client__65
DataDog/java-dogstatsd-client
65
defect
de8c7982d208b1458e17eef81e4d18085d7fd9f5
10d68530f2c239b8415709d6b9dc48d17f89daa4
Check for messages over max packet size limit and throw an exception with the message
Currently such messages trigger a `BufferOverflowException` (see issue [#23](https://github.com/DataDog/java-dogstatsd-client/issues/23)) which an error handler could handle, but it wouldn't be given the contents of the message itself. I'm proposing to propagate that on for a consumer to do with as they wish.
diff --git a/src/main/java/com/timgroup/statsd/StatsDSender.java b/src/main/java/com/timgroup/statsd/StatsDSender.java index fd08726b..b8636427 100644 --- a/src/main/java/com/timgroup/statsd/StatsDSender.java +++ b/src/main/java/com/timgroup/statsd/StatsDSender.java @@ -55,8 +55,11 @@ public void run() { ...
1
1
0
[{"id": "G0", "claim": "The exception class should be renamed to a more appropriate name such as InvalidMessageException.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
DataDog__java-dogstatsd-client__66
DataDog/java-dogstatsd-client
66
defect
3b8b35092a005b19bc514cc242bd04ffa9425900
a17418226f8310411458d52bf458b472ecb251e3
Take an argument for maxPacketSizeBytes
We're on an old version from before pull request [#17](https://github.com/DataDog/java-dogstatsd-client/pull/17) dropped the max packet size limit to 1400. I'd like to be able to set the max size to what we're at now to maintain parity then be able to bring it down once we've gathered more data about which messages we ...
diff --git a/src/main/java/com/timgroup/statsd/NonBlockingStatsDClient.java b/src/main/java/com/timgroup/statsd/NonBlockingStatsDClient.java index aac88c0e..86853c7f 100644 --- a/src/main/java/com/timgroup/statsd/NonBlockingStatsDClient.java +++ b/src/main/java/com/timgroup/statsd/NonBlockingStatsDClient.java @@ -55,7 ...
2
1
0
[{"id": "G0", "claim": "The second line of the two updated constructor signatures has a little extra indentation compared with the surrounding style.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "A comment should be added to the renamed constant ...
null
DataDog__java-dogstatsd-client__73
DataDog/java-dogstatsd-client
73
defect
5b97614aeb7c09210a99b24872d38ef6ce8abd8e
23ec09fd9dd2b23e0e99a896ab2e123050e181d1
Add environment variables support for Client configuration
Support of 3 environment variables for Client configuration: - "DD_AGENT_HOST" used to provide the Agent hostname. - "DD_DOGSTATSD_PORT" used to provide the DogStatsD port. - "DD_ENTITY_ID" used to provide an identifier to the Client.
diff --git a/pom.xml b/pom.xml index cc7bcc5c..b7c7ab93 100644 --- a/pom.xml +++ b/pom.xml @@ -66,6 +66,12 @@ <scope>test</scope> <version>4.12</version> </dependency> + <dependency> + <groupId>com.github.stefanbirkner</groupId> + <artifactId>system-rules</artifactId> + <scope>test<...
1
1
1
[{"id": "G0", "claim": "The new entityID handling should also treat an empty string (not just null) as unset, so an empty argument or DD_ENTITY_ID environment variable does not produce an entity tag.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
DataDog__jsonapi__16
DataDog/jsonapi
16
defect
283c5cf3f02ed26426c1292773566a93923a3464
dca5ee061e8b0787ee9a2f3b064ba9ea565b8af2
Marshal embedded structs
closes #15
diff --git a/jsonapi_test.go b/jsonapi_test.go index 016ba3e..850d037 100644 --- a/jsonapi_test.go +++ b/jsonapi_test.go @@ -53,6 +53,7 @@ var ( articleAIntIDID = ArticleIntIDID{ID: IntID(1), Title: "A"} articleBIntIDID = ArticleIntIDID{ID: IntID(2), Title: ...
1
1
1
[{"id": "G0", "claim": "When the embedded field is a pointer type (e.g. *Metadata instead of Metadata), its attributes are excluded from the marshaled output; the reviewer asks to fix that and add an additional test.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
DataDog__jsonapi__18
DataDog/jsonapi
18
defect
20e618e55abef7f21d28bc96de39a6e79d2e5898
14ca0867e755ea18448aa569312fda5900641baf
Allow unmarshal to handle empty relationships
Closes #17, allowing `null` and `[]` to be valid JSON:API relationship sub-document bodies
diff --git a/unmarshal.go b/unmarshal.go index 69d0946..5dbbd30 100644 --- a/unmarshal.go +++ b/unmarshal.go @@ -204,7 +204,7 @@ func (ro *resourceObject) unmarshalFields(v any) error { continue } relDocument, ok := ro.Relationships[name] - if !ok { + if !ok || (len(relDocument.DataMany) == 0 && relDoc...
2
2
0
[{"id": "G0", "claim": "The inline empty-document condition should be extracted into a `document.isEmpty` method so the check reads as a complete emptiness check.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new test case should include a ...
null
DataDog__jsonapi__21
DataDog/jsonapi
21
defect
56a6753781747c98728dc7cefb134b94ac3e8ac6
aed0fd86d9114127d23a94da02cddd2cf2290fea
Member Name Validation
Closes #19 Featured in this PR: - New marshal / unmarshal options for strict name validation or disabling name validation - Default marshal / unmarshal behavior is to perform regular spec-conforming name validation Tests: - Extensive suite of tests for every interesting location in a JSON:API document in whic...
diff --git a/errors.go b/errors.go index 4788b18..6826574 100644 --- a/errors.go +++ b/errors.go @@ -79,6 +79,16 @@ func (e *PartialLinkageError) Error() string { ) } +// MemberNameValidationError indicates that a document member name failed a validation step. +type MemberNameValidationError struct { + MemberName ...
2
2
0
[{"id": "G0", "claim": "Hand-initializing a fresh relationship Marshaler by copying fields invites future bugs; a method that copies over the wanted fields would be safer.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "TestMarshalMemberNameValid...
null
DataDog__jsonapi__47
DataDog/jsonapi
47
defect
76a22db5f4189a5f331157d699fc08c6af16a6e7
7cb35c2ddb7579692f61503c7a7d6c43790fea85
validateJSONMemberNames: Skip Unmarshal when validation disabled
This function was calling json.Unmarshal even if validation was disabled. This changes it to do nothing instead. This is a large performance win for large documents. Change the benchmarks to report memory allocation by default. The benchstat output comparing the before/after for this change shows that this reduce...
diff --git a/marshal_test.go b/marshal_test.go index 782f3f3..3a835d7 100644 --- a/marshal_test.go +++ b/marshal_test.go @@ -817,6 +817,7 @@ func BenchmarkMarshal(b *testing.B) { for _, bm := range benchmarks { bm := bm b.Run(bm.name, func(b *testing.B) { + b.ReportAllocs() for n := 0; n < b.N; n++ { ...
1
1
0
[{"id": "G0", "claim": "The commented-out validateJSONMemberNames2 block in member_names.go is a leftover testing artifact that should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
DataDog__jsonapi__52
DataDog/jsonapi
52
defect
3a88ca9fb1bf9685304e36569583daf5f5ac4b29
5cd1535a8a4585f689d8d0721899cc469ab18f5f
Add support for unmarshalling embedded structs with relationships
This commit adds better support for unmarshaling embedded structs that contain relationship fields
diff --git a/jsonapi_test.go b/jsonapi_test.go index 256d3e5..034d361 100644 --- a/jsonapi_test.go +++ b/jsonapi_test.go @@ -15,11 +15,16 @@ var ( authorBWithMeta = Author{ID: "2", Name: "B", Meta: map[string]any{"count": 10.0}} // comments - commentA = Comment{ID: "1", Body: "A"} - commentB =...
1
1
1
[{"id": "G0", "claim": "The embedded-struct recursion condition should be restructured so the recursion into a struct field happens only inside the `jsonapiTag == nil` branch and only for anonymous structs, and that it still works should be verified.", "category": "correctness", "verdict": "supported", "priority": "P1"...
null
DataDog__jsonapi__62
DataDog/jsonapi
62
defect
465e04d1370def8fe958043beaeadd8a7b9db900
f9838c798ac3a78e3d65a7d6ff9e58c5802ca514
Fix Uniqueness check by there is relationship to the same object but under 2 relationships keys
Spec : https://jsonapi.org/format/1.1/#document-resource-object-relationships Allow some json+api document that have relationships to a same object but under differents relation key : ``` { "data": { "id": "1", "type": "articles", "attributes": { "title": "A" },...
diff --git a/jsonapi.go b/jsonapi.go index 83e1cab..78eff43 100644 --- a/jsonapi.go +++ b/jsonapi.go @@ -336,8 +336,8 @@ func (d *document) verifyResourceUniqueness() bool { } topLevelSeen[rid] = true - relSeen := make(map[string]bool) for _, rel := range ro.Relationships { + relSeen := make(map[string]bo...
1
1
0
[{"id": "G0", "claim": "The blank `_ \"embed\"` import the PR added to unmarshal_test.go appears unnecessary since nothing new is being embedded and the test JSON is written inline in _test.go files, so it should be removed unless there is a reason for it.", "category": "maintainability", "verdict": "supported", "prior...
null
DataDog__jsonapi__67
DataDog/jsonapi
67
defect
055f87a59b681897303de20d03e45b81e6d3c967
d2faab3400c66d20ee763cfca73017000ca669ce
allow jsonapi type customization
Currently, the jsonapi type must be specified as a tag on the struct. This makes it impossible to dynamically decide the type, requiring a unique struct per needed relationship: ```go type User struct { ID string `jsonapi:"primary,user"` // attributes } type Team struct { ID string `jsonapi:"primary,te...
diff --git a/jsonapi.go b/jsonapi.go index 7f811ba..a780428 100644 --- a/jsonapi.go +++ b/jsonapi.go @@ -385,3 +385,27 @@ type MarshalIdentifier interface { type UnmarshalIdentifier interface { UnmarshalID(id string) error } + +// MarshalType can be optionally implemented to control marshaling of the type field. +/...
2
2
1
[{"id": "G0", "claim": "Fix the typo in the parameter name of the UnmarshalType interface method: \"jsonapiTpe\" should be \"jsonapiType\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "When UnmarshalType returns an error, the implementer's error...
null
DataDog__kafka-kit__192
DataDog/kafka-kit
192
defect
de0ca17194ae0301df9fec8648be502d3b83f151
47ea005cc2634bed62e4975e10d94d725cceef0a
Add flag to Ignore no-op remappings, to alleviate the reassignment payload
When we lose a broker that was assigned a large number of partitions spanning a large number of topics in a single map, `topicmappr` ends up generating a large reassignment file, containing a majority of no-ops partition mappings. We've observed that this large reassignment puts a heavy load on the kafka controller...
diff --git a/cmd/topicmappr/commands/rebuildtopics.go b/cmd/topicmappr/commands/rebuildtopics.go index e4a8409f..e7e2cbbe 100644 --- a/cmd/topicmappr/commands/rebuildtopics.go +++ b/cmd/topicmappr/commands/rebuildtopics.go @@ -197,6 +197,13 @@ func rebuild(cmd *cobra.Command, _ []string) { fmt.Printf("%s[none]\n", i...
3
2
2
[{"id": "G0", "claim": "Skipping no-op remappings should be controlled by an explicit flag rather than built into the substitution-affinity pathway, since no-ops may also be worth skipping in other scenarios and sometimes all no-ops may be wanted.", "category": "design", "verdict": "supported", "priority": "P1", "scope...
null
DataDog__kafka-kit__338
DataDog/kafka-kit
338
defect
2dff5ed35fdb0f4d4af937e5465aba275d8efbd0
6f101614c7cd119ca6fca936509a001a54c303d7
Add tests for autothrottle API.
Since I broke it last week, seemed worth adding some tests. Ended up just reusing the ZK mock included, which worked fine. Ran the tests with the prefix version also and they would have caught the bug 😄
diff --git a/cmd/autothrottle/api.go b/cmd/autothrottle/api.go index 7cc4849c..82c22261 100644 --- a/cmd/autothrottle/api.go +++ b/cmd/autothrottle/api.go @@ -104,7 +104,7 @@ func throttleGetSet(w http.ResponseWriter, req *http.Request, zk kafkazk.Handler } } -// throttleRemove removes either the global or broker-...
1
1
0
[{"id": "G0", "claim": "Move the kafkazk import into a separate, line-separated group after the standard library imports in cmd/autothrottle/api_test.go so the linter planned for CI will not complain.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
DataDog__kafka-kit__379
DataDog/kafka-kit
379
defect
c6fa4f8af45cda1498f9890f8923263cbfd24eb3
593ba2688546441257c40e7d4df97b74c2782836
Broker leadership evacuation
Adds the functionality to the `rebuild` command only, to evacuate leadership for given broker/topic pairings (easy future functionality for partition granularity). We currently have a few use cases where this is desirable: - A single broker is overloaded because of partition imbalance by something not currently hand...
diff --git a/cmd/topicmappr/commands/config.go b/cmd/topicmappr/commands/config.go index 30b96bb1..6d2aa670 100644 --- a/cmd/topicmappr/commands/config.go +++ b/cmd/topicmappr/commands/config.go @@ -44,18 +44,18 @@ func bootstrap(cmd *cobra.Command) { // Populate topic include / exclude regex. if include, _ := cm...
3
1
0
[{"id": "G0", "claim": "The comment '// make a lookup map of topics' is duplicated above the brokers lookup at line ~148, where it should say brokers.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The newLeader variable (p.Replicas[j]) is synonym...
null
DataDog__sketches-go__15
DataDog/sketches-go
15
defect
e046f27b141da95c97cfdf39feeb7e313a452acd
c997b9e8c91d433d6d60d18408194251546636f4
Add negative value store, additional mapping and serialization
### What does this PR do? A brief description of the change being made with this pull request. Bring the sketch closer to the java version: * add negative value store * add serialization to/deserialization from protobuf * additional mapping ### Motivation What inspired you to submit this pull request? ...
diff --git a/ddsketch/ddsketch.go b/ddsketch/ddsketch.go index a94908e..491ad8a 100644 --- a/ddsketch/ddsketch.go +++ b/ddsketch/ddsketch.go @@ -9,39 +9,45 @@ import ( "errors" "math" + "github.com/DataDog/sketches-go/ddsketch/mapping" + "github.com/DataDog/sketches-go/ddsketch/pb/sketchpb" "github.com/DataDog/...
6
5
2
[{"id": "G0", "claim": "MaxIndexableValue() lets math.Exp overflow to +Inf (Value() at the max indexable value overflows, and it starts overflowing at 709.5 rather than the documented 7.097827e+02), and it was unclear what to set the bound to, so MaxIndexableValue() should be set to a value that prevents the overflow."...
null
DataDog__sketches-go__16
DataDog/sketches-go
16
defect
3f51c7f63727ef4ad72e9b8ff3c4e3c913bb0a75
0a3f955fea68657a977da2098441e542d6647e1c
Add index offset to mappings, FromProto method returns deserialized object
### What does this PR do? * Add `normalizedIndexOffset` to mappings * `FromProto` returns deserialized sketch/mapping/store ### Motivation What inspired you to submit this pull request? ### Additional Notes Anything else we should know when reviewing?
diff --git a/ddsketch/ddsketch.go b/ddsketch/ddsketch.go index c80e9da..fa80295 100644 --- a/ddsketch/ddsketch.go +++ b/ddsketch/ddsketch.go @@ -142,9 +142,11 @@ func (s *DDSketch) ToProto() *sketchpb.DDSketch { } } -func (s *DDSketch) FromProto(pb *sketchpb.DDSketch) { - s.IndexMapping.FromProto(pb.Mapping) - s.p...
1
1
0
[{"id": "G0", "claim": "Add a comment on the Store interface's FromProto method to highlight that it creates and returns a new store rather than filling the existing one.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
DataDog__sketches-go__17
DataDog/sketches-go
17
defect
94fb49ea6f04e2846a310df1ba32dc9368cd949a
b8410b61b6fae7dc3f9b3ab5a787eabd92048117
Add cubically interpolated mapping
### What does this PR do? Add `CubicallyInterpolatedMapping` ### Motivation What inspired you to submit this pull request? ### Additional Notes Anything else we should know when reviewing?
diff --git a/ddsketch/mapping/bit_operation_helper.go b/ddsketch/mapping/bit_operation_helper.go new file mode 100644 index 0000000..193653e --- /dev/null +++ b/ddsketch/mapping/bit_operation_helper.go @@ -0,0 +1,36 @@ +// Unless explicitly stated otherwise all files in this repository are licensed +// under the Apache...
2
2
0
[{"id": "G0", "claim": "Remove the commented-out //\"fmt\" import line from bit_operation_helper.go.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use the more accurate log1p form for the multiplier: 7.0 / (10 * math.Log1p(2*relativeAccuracy/(1...
null
DataDog__sketches-go__18
DataDog/sketches-go
18
defect
410dba39eebdb2ec04d72de5defd10157dd33e26
6e28d84378f09e54020d137b69d59a822181dfb1
Update store implementation to match java version
### What does this PR do? See title. ### Motivation What inspired you to submit this pull request? ### Additional Notes Anything else we should know when reviewing?
diff --git a/ddsketch/ddsketch.go b/ddsketch/ddsketch.go index fa80295..41b558c 100644 --- a/ddsketch/ddsketch.go +++ b/ddsketch/ddsketch.go @@ -37,21 +37,36 @@ func MemoryOptimalCollapsingLowestSketch(relativeAccuracy float64, maxNumBins in return NewDDSketch(indexMapping, store.NewCollapsingLowestDenseStore(maxNumB...
1
1
0
[{"id": "G0", "claim": "Given that mappings are immutable, the Copy() method added to the IndexMapping interface is unnecessary and should be removed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
DataDog__sketches-go__38
DataDog/sketches-go
38
defect
13cd53c56fbbc1adc2457e4bf9b0421ccd2d0509
c776cef28eb3f6a0fafd7fb201592a9a2680b99b
add deserialization into sparse and buffer paginated stores
### What does this PR do? Previously, `SparseStore`s and `BufferPaginatedStore`s could only be serialized into proto, but not deserialized. This PR adds ability to deserialize into `SparseStore`s and `BufferPaginatedStore`s. Also, serialization code for `SparseStore`s (`SparseStore.ToProto()`) didn't actually do an...
diff --git a/.gitignore b/.gitignore index 7d1bbf0..e5bbcc2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ sketches-go.iml .idea/ +vendor/ diff --git a/ddsketch/ddsketch.go b/ddsketch/ddsketch.go index e5172ff..790729a 100644 --- a/ddsketch/ddsketch.go +++ b/ddsketch/ddsketch.go @@ -7,6 +7,7 @@ package ddsk...
1
1
0
[{"id": "G1", "claim": "store.Type does not help modularity, cannot be used with parameterized stores or store reuse, and Charles proposes using a StoreProvider (func() Store) pattern instead.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
DataDog__sketches-go__39
DataDog/sketches-go
39
defect
4a71d0abc65cfef146ee9ba6c2e5edb8ccba2bb6
8f85b711bf9fb1bd5e6eeb796a486fd66ae17a52
Add functions to encode floats and ints
This is part of the work around the new serialization method, which will be both more space-efficient and faster than the current one using Protobuf. This PR adds functions to encode floating-point and integer values. Varfloat is a custom encoding method that is inspired by varint and that is space-efficient when en...
diff --git a/ddsketch/encoding/encoding.go b/ddsketch/encoding/encoding.go new file mode 100644 index 0000000..58e48b9 --- /dev/null +++ b/ddsketch/encoding/encoding.go @@ -0,0 +1,160 @@ +package encoding + +import ( + "encoding/binary" + "errors" + "io" + "math" + "math/bits" +) + +// Encoding functions append bytes t...
2
2
0
[{"id": "G0", "claim": "The EncodeVarfloat64 doc comment reads \"starting the the most significant bits.\" — \"the\" is duplicated; it should read \"starting with the most significant bits.\"", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Enco...
null
DataDog__sketches-go__74
DataDog/sketches-go
74
defect
3b624d11c5b01e2dea41e782b14b64ef66d6729a
0f0bbc480365bf25941ab5526344580e808f1c0f
Fix nullable pointer dereference in FromProto
### What does this PR do? This PR adds nil checks in ddksetch FromProto function to prevent nil ptr dereference if the protobuf message is missing fields. ### Motivation When deserializing protobufs, a valid message can contain a missing field for stores. This is deserialized as a nil pointer to the store str...
diff --git a/ddsketch/ddsketch.go b/ddsketch/ddsketch.go index 187c10f..d39ead2 100644 --- a/ddsketch/ddsketch.go +++ b/ddsketch/ddsketch.go @@ -262,13 +262,13 @@ func (s *DDSketch) GetSum() (sum float64) { // GetPositiveValueStore returns the store.Store object that contains the positive // values of the sketch. -...
2
2
1
[{"id": "G0", "claim": "Instead of the inline nil-mapping check in FromProtoWithStoreProvider, the handling of a nil pb.Mapping should be delegated to mapping.FromProto.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The error message should be reworded ...
null
DataDog__terraform-provider-datadog__1391
DataDog/terraform-provider-datadog
1,391
defect
66042c46b681943dfe0de8e7c8e87cb3e9a33a24
dbea00a0e6b65070860c85080f11eda343c5d083
[datadog_synthetics_test] Add synthetics test data source
Similar to https://github.com/DataDog/terraform-provider-datadog/pull/1151 which did it for Synthetics Variables, this PR adds a data source for Synthetics Tests. This can be useful for instance to get data from a test that you want to manage in the UI but for which you need some values to terraform other tests. For...
diff --git a/datadog/data_source_datadog_synthetics_test_.go b/datadog/data_source_datadog_synthetics_test_.go new file mode 100644 index 0000000000..a616981247 --- /dev/null +++ b/datadog/data_source_datadog_synthetics_test_.go @@ -0,0 +1,81 @@ +package datadog + +import ( + "context" + + "github.com/DataDog/datadog-a...
2
2
0
[{"id": "G0", "claim": "The loop should break once the matching test is found instead of collecting all matches, since multiple results are not handled anyway and the searched test_id is presumably unique.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "T...
null
DataDog__terraform-provider-datadog__1567
DataDog/terraform-provider-datadog
1,567
defect
926415d29e1d1de8c787ea360440697beebec3f0
852183649c5a6a04263dd833bc1e05c298c04f97
[datadog_synthetics_global_variable] Add support for local variable extract from test
Add support for Synthetics global variable from a multistep API test using an extracted local variable.
diff --git a/datadog/resource_datadog_synthetics_global_variable.go b/datadog/resource_datadog_synthetics_global_variable.go index f7bf057a41..cfa883140c 100644 --- a/datadog/resource_datadog_synthetics_global_variable.go +++ b/datadog/resource_datadog_synthetics_global_variable.go @@ -81,7 +81,7 @@ func resourceDatado...
2
2
1
[{"id": "G0", "claim": "The new HCL test fixture's `api_step {` block should be indented with two leading spaces instead of a tab to match its nested block style.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In updateSyntheticsGlobalVariableLo...
null
DataDog__terraform-provider-datadog__1993
DataDog/terraform-provider-datadog
1,993
defect
44b5f2859bacb9eb8041b512034f44ae15ceefff
bde9356314548f670a94db647245b447e8c8eab9
[data_source_datadog_synthetics_test] Allow datasource to take a test URL as well as id
To fetch a test with id `foo`, one can now use `https://app.datadoghq.com/synthetics/details/foo` as well as just `foo`. This makes for a better devx when using the provider, as users can cmd-click to see the test on the web-app from their code editor.
diff --git a/datadog/data_source_datadog_synthetics_test_.go b/datadog/data_source_datadog_synthetics_test_.go index e2a066d9ba..7ae56e841d 100644 --- a/datadog/data_source_datadog_synthetics_test_.go +++ b/datadog/data_source_datadog_synthetics_test_.go @@ -7,6 +7,8 @@ import ( "github.com/hashicorp/terraform-plug...
1
1
1
[{"id": "G0", "claim": "The URL-matching regex, hard-coded to `.datadoghq.com`, fails to match test URLs from Datadog sites that are not `.datadoghq.com` (such as ddog-gov or .eu), so those URLs would not be reduced to a test id.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduce...
null
DataDog__terraform-provider-datadog__2205
DataDog/terraform-provider-datadog
2,205
defect
99d503866db7702206fa00dc8a203e47590ecf7e
a4f3887b0d6902d0d1c2928e0b7cead137ec6a71
[dashboards] Support for powerpack widgets
Support for powerpack widgets on dashboards. References: - Dogweb definition schema: https://github.com/DataDog/dogweb/blob/prod/dogweb/model/dashboard_widget/widget/powerpack.py#L46 - API spec definition schema: https://github.com/DataDog/datadog-api-spec/blob/master/spec/v1/dashboard.yaml#L1524 To test: ```...
diff --git a/datadog/resource_datadog_dashboard.go b/datadog/resource_datadog_dashboard.go index b684a37e5a..31beb96231 100644 --- a/datadog/resource_datadog_dashboard.go +++ b/datadog/resource_datadog_dashboard.go @@ -400,6 +400,51 @@ func buildDatadogDashboard(d *schema.ResourceData) (*datadogV1.Dashboard, error) //...
1
1
0
[{"id": "G0", "claim": "The five lines in buildTerraformPowerpackDefinition that hardcode a placeholder controlled-by-powerpack template variable (name \"var\", values [\"default\"]) are leftover testing and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduc...
null
DataDog__terraform-provider-datadog__2497
DataDog/terraform-provider-datadog
2,497
defect
6545125ec013ca7ab07755127f44c6f3cc5f685f
cee8e80c085dbfa8bab0dfcd5524d97aab8b9145
[RUM] Update terraform definition with `rum_stream` for `data_source`
Follow up of https://github.com/DataDog/datadog-api-spec/pull/2906 >[!TIP] > Can be reviewed by commits
diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardListRumEvents.freeze b/datadog/tests/cassettes/TestAccDatadogDashboardListRumEvents.freeze new file mode 100644 index 0000000000..e7f2d0ba74 --- /dev/null +++ b/datadog/tests/cassettes/TestAccDatadogDashboardListRumEvents.freeze @@ -0,0 +1 @@ +2024-07-22T17:52...
1
1
1
[{"id": "G0", "claim": "The acceptance-test cassette must be recorded against the production API host rather than staging (api.datad0g.com), as the other cassette yaml files in the repo do.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
DataDog__terraform-provider-datadog__2983
DataDog/terraform-provider-datadog
2,983
defect
e22aa690c850ac9343ef8c356757fbe569789e8f
d74726ad4e2f0b35608e27a9da25a7679403b4b9
[datadog_spans_metric] Fix validation with unintended side effects
## Motivation Users have seen some validation errors when trying to create `datadog_spans_metric` using a dynamic block for the `group_by` attribute. This unexpected side effect came from a newly added validation logic. When using dynamic blocks, at validation time, terraform considers the block as an `unknown` va...
diff --git a/datadog/fwprovider/resource_datadog_spans_metric.go b/datadog/fwprovider/resource_datadog_spans_metric.go index 404ca13e5b..7e64ba828e 100644 --- a/datadog/fwprovider/resource_datadog_spans_metric.go +++ b/datadog/fwprovider/resource_datadog_spans_metric.go @@ -20,9 +20,8 @@ import ( ) var ( - _ resour...
1
1
1
[{"id": "G0", "claim": "The reviewer questions completely removing the include_percentiles validation and asks for the side effects that justify its complete removal.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
DataDog__terraform-provider-datadog__2985
DataDog/terraform-provider-datadog
2,985
defect
e8fdc23ca53e4c5877ea4d23e722f69cc49dbae0
869209a6aaef0acf5a8027a2a0a2bdb793f69006
[datadog_security_monitoring_rule_json] Add security_monitoring_rule_json resource
[SEC-19361](https://datadoghq.atlassian.net/jira/software/c/projects/SEC/boards/5362?selectedIssue=SEC-19361) Adding security_monitoring_rule_json resource to allow importing JSON rules through terraform. [SEC-19361]: https://datadoghq.atlassian.net/browse/SEC-19361?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYz...
diff --git a/.gitignore b/.gitignore index 5af13b5b64..5f881808d9 100644 --- a/.gitignore +++ b/.gitignore @@ -34,3 +34,6 @@ website/vendor # python *.pyc + +#cursor +.cursor/ diff --git a/datadog/fwprovider/framework_provider.go b/datadog/fwprovider/framework_provider.go index 4e24255066..d6d075243f 100644 --- a/d...
2
2
0
[{"id": "G0", "claim": "The .cursor/ ignore entry does not need to be committed to the repository.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The go.mod/go.sum package upgrades are not needed by this PR and would be good to separate from it....
null
DataDog__terraform-provider-datadog__3106
DataDog/terraform-provider-datadog
3,106
defect
58fe60e93dbf568251d711ca50c5289cdf6c066e
af8717826ec0bdfb45831cd014c669526ea6babe
[datadog_synthetics_test] Add append_to_content option for text input
This PR adds the append_to_content option for text input in browser step. It was already available in the UI but never in the terraform provider.
diff --git a/datadog/resource_datadog_synthetics_test_.go b/datadog/resource_datadog_synthetics_test_.go index aacf8863ae..43cd4b9a1d 100644 --- a/datadog/resource_datadog_synthetics_test_.go +++ b/datadog/resource_datadog_synthetics_test_.go @@ -1279,6 +1279,11 @@ func syntheticsBrowserStepParams() schema.Schema { ...
1
1
0
[{"id": "G0", "claim": "The `append_to_content` doc description should start with \"Whether\" like `click_with_javascript` and note that the option applies to \"typeText\" steps.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null