Add Datadog-Entity-Id header - #6559
Merged
Merged
Conversation
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 43 metrics, 11 unstable metrics. Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.29.0-SNAPSHOT~d8f87125a6, baseline=1.29.0-SNAPSHOT~e546801121
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.065 s) : 0, 1065237
Total [baseline] (9.398 s) : 0, 9397761
Agent [candidate] (1.06 s) : 0, 1059633
Total [candidate] (9.346 s) : 0, 9346455
section appsec
Agent [baseline] (1.164 s) : 0, 1163777
Total [baseline] (9.541 s) : 0, 9540787
Agent [candidate] (1.157 s) : 0, 1156719
Total [candidate] (9.419 s) : 0, 9419118
section iast
Agent [baseline] (1.187 s) : 0, 1187237
Total [baseline] (9.747 s) : 0, 9746881
Agent [candidate] (1.185 s) : 0, 1184742
Total [candidate] (9.754 s) : 0, 9754479
section profiling
Agent [baseline] (1.287 s) : 0, 1287220
Total [baseline] (9.628 s) : 0, 9628195
Agent [candidate] (1.299 s) : 0, 1299196
Total [candidate] (9.709 s) : 0, 9709030
gantt
title petclinic - break down per module: candidate=1.29.0-SNAPSHOT~d8f87125a6, baseline=1.29.0-SNAPSHOT~e546801121
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (671.959 ms) : 0, 671959
BytebuddyAgent [candidate] (666.913 ms) : 0, 666913
GlobalTracer [baseline] (297.925 ms) : 0, 297925
GlobalTracer [candidate] (297.786 ms) : 0, 297786
AppSec [baseline] (52.429 ms) : 0, 52429
AppSec [candidate] (52.457 ms) : 0, 52457
Remote Config [baseline] (716.502 µs) : 0, 717
Remote Config [candidate] (684.257 µs) : 0, 684
Telemetry [baseline] (7.652 ms) : 0, 7652
Telemetry [candidate] (7.494 ms) : 0, 7494
section appsec
BytebuddyAgent [baseline] (672.68 ms) : 0, 672680
BytebuddyAgent [candidate] (667.315 ms) : 0, 667315
GlobalTracer [baseline] (298.292 ms) : 0, 298292
GlobalTracer [candidate] (297.709 ms) : 0, 297709
AppSec [baseline] (150.751 ms) : 0, 150751
AppSec [candidate] (150.084 ms) : 0, 150084
Remote Config [baseline] (658.025 µs) : 0, 658
Remote Config [candidate] (652.573 µs) : 0, 653
Telemetry [baseline] (6.809 ms) : 0, 6809
Telemetry [candidate] (6.742 ms) : 0, 6742
section iast
BytebuddyAgent [baseline] (780.29 ms) : 0, 780290
BytebuddyAgent [candidate] (778.248 ms) : 0, 778248
GlobalTracer [baseline] (289.432 ms) : 0, 289432
GlobalTracer [candidate] (289.355 ms) : 0, 289355
AppSec [baseline] (54.858 ms) : 0, 54858
AppSec [candidate] (54.621 ms) : 0, 54621
Remote Config [baseline] (627.811 µs) : 0, 628
Remote Config [candidate] (612.206 µs) : 0, 612
Telemetry [baseline] (6.615 ms) : 0, 6615
Telemetry [candidate] (7.375 ms) : 0, 7375
IAST [baseline] (21.108 ms) : 0, 21108
IAST [candidate] (20.184 ms) : 0, 20184
section profiling
ProfilingAgent [baseline] (125.96 ms) : 0, 125960
ProfilingAgent [candidate] (126.32 ms) : 0, 126320
BytebuddyAgent [baseline] (665.551 ms) : 0, 665551
BytebuddyAgent [candidate] (672.59 ms) : 0, 672590
GlobalTracer [baseline] (380.561 ms) : 0, 380561
GlobalTracer [candidate] (384.327 ms) : 0, 384327
AppSec [baseline] (52.392 ms) : 0, 52392
AppSec [candidate] (52.789 ms) : 0, 52789
Remote Config [baseline] (665.307 µs) : 0, 665
Remote Config [candidate] (665.766 µs) : 0, 666
Telemetry [baseline] (7.515 ms) : 0, 7515
Telemetry [candidate] (7.553 ms) : 0, 7553
Profiling [baseline] (125.984 ms) : 0, 125984
Profiling [candidate] (126.344 ms) : 0, 126344
LoadParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 11 metrics, 15 unstable metrics. Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.29.0-SNAPSHOT~d8f87125a6, baseline=1.29.0-SNAPSHOT~e546801121
dateFormat X
axisFormat %s
section baseline
no_agent (1.354 ms) : 1334, 1373
. : milestone, 1354,
appsec (1.768 ms) : 1742, 1794
. : milestone, 1768,
iast (1.522 ms) : 1497, 1547
. : milestone, 1522,
profiling (1.533 ms) : 1507, 1559
. : milestone, 1533,
tracing (1.512 ms) : 1487, 1536
. : milestone, 1512,
section candidate
no_agent (1.353 ms) : 1334, 1372
. : milestone, 1353,
appsec (1.754 ms) : 1729, 1780
. : milestone, 1754,
iast (1.516 ms) : 1490, 1541
. : milestone, 1516,
profiling (1.514 ms) : 1489, 1539
. : milestone, 1514,
tracing (1.491 ms) : 1466, 1516
. : milestone, 1491,
Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.29.0-SNAPSHOT~d8f87125a6, baseline=1.29.0-SNAPSHOT~e546801121
dateFormat X
axisFormat %s
section baseline
no_agent (372.416 µs) : 352, 393
. : milestone, 372,
iast (490.764 µs) : 470, 512
. : milestone, 491,
iast_FULL (542.703 µs) : 522, 563
. : milestone, 543,
iast_GLOBAL (509.756 µs) : 487, 532
. : milestone, 510,
iast_HARDCODED_SECRET_DISABLED (475.057 µs) : 455, 496
. : milestone, 475,
iast_INACTIVE (447.906 µs) : 427, 469
. : milestone, 448,
iast_TELEMETRY_OFF (473.653 µs) : 453, 494
. : milestone, 474,
tracing (450.713 µs) : 430, 472
. : milestone, 451,
section candidate
no_agent (375.469 µs) : 355, 395
. : milestone, 375,
iast (472.763 µs) : 452, 493
. : milestone, 473,
iast_FULL (539.023 µs) : 518, 560
. : milestone, 539,
iast_GLOBAL (503.766 µs) : 483, 525
. : milestone, 504,
iast_HARDCODED_SECRET_DISABLED (480.626 µs) : 460, 501
. : milestone, 481,
iast_INACTIVE (446.44 µs) : 426, 467
. : milestone, 446,
iast_TELEMETRY_OFF (478.002 µs) : 457, 500
. : milestone, 478,
tracing (439.754 µs) : 419, 461
. : milestone, 440,
|
ygree
force-pushed
the
ygree/datadog-entity-id
branch
from
January 26, 2024 07:40
6d325e2 to
744b0b5
Compare
ygree
force-pushed
the
ygree/datadog-entity-id
branch
2 times, most recently
from
January 26, 2024 17:50
4833837 to
bc8b505
Compare
ygree
force-pushed
the
ygree/datadog-entity-id
branch
3 times, most recently
from
January 26, 2024 22:20
00f6440 to
a63a779
Compare
ygree
force-pushed
the
ygree/datadog-entity-id
branch
from
January 26, 2024 22:21
a63a779 to
d8f8712
Compare
ygree
marked this pull request as ready for review
January 26, 2024 22:52
ygree
requested review from
jpbempel and
mcculls
and removed request for
a team
January 26, 2024 22:53
9 tasks
dougqh
approved these changes
Jan 29, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Does This Do
Adds
Datadog-Entity-IDheader.Motivation
Send a new HTTP header
Datadog-Entity-IDto the trace-agent. This will allow us to cover more container tagging scenarios.The reference implementation is in Go: https://github.com/DataDog/dd-trace-go/blob/main/internal/container_linux.go
How to build the header value?
If the container ID (the value used for the
Datadog-Container-IDheader) is available and not empty, the value ofDatadog-Entity-IDmust becid-<container ID>Else if the tracer runs in the host cgroup namespace (see isHostCgroupNamespace), do not report
Datadog-Entity-IDElse the value of
Datadog-Entity-IDmust bein-<cgroup inode>(see getCgroupInode)System-tests PR: DataDog/system-tests#2029
Additional Notes
Jira ticket: APMJAVA-1198