-
Notifications
You must be signed in to change notification settings - Fork 298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add APIs for llm obs #8135
base: master
Are you sure you want to change the base?
add APIs for llm obs #8135
Conversation
84eb184
to
85d0946
Compare
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 66 metrics, 5 unstable metrics. Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.48.0-SNAPSHOT~d16b87deb5, baseline=1.48.0-SNAPSHOT~05ccd9aa10
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.052 s) : 0, 1051513
Total [baseline] (8.721 s) : 0, 8720581
Agent [candidate] (1.071 s) : 0, 1071204
Total [candidate] (8.742 s) : 0, 8741961
section iast
Agent [baseline] (1.178 s) : 0, 1178456
Total [baseline] (9.24 s) : 0, 9240405
Agent [candidate] (1.179 s) : 0, 1178608
Total [candidate] (9.272 s) : 0, 9271622
section iast_HARDCODED_SECRET_DISABLED
Agent [baseline] (1.177 s) : 0, 1176771
Total [baseline] (9.247 s) : 0, 9247310
Agent [candidate] (1.18 s) : 0, 1179669
Total [candidate] (9.221 s) : 0, 9221226
section iast_TELEMETRY_OFF
Agent [baseline] (1.172 s) : 0, 1172184
Total [baseline] (9.273 s) : 0, 9273048
Agent [candidate] (1.182 s) : 0, 1181691
Total [candidate] (9.27 s) : 0, 9270396
gantt
title insecure-bank - break down per module: candidate=1.48.0-SNAPSHOT~d16b87deb5, baseline=1.48.0-SNAPSHOT~05ccd9aa10
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (721.674 ms) : 0, 721674
BytebuddyAgent [candidate] (733.745 ms) : 0, 733745
GlobalTracer [baseline] (239.842 ms) : 0, 239842
GlobalTracer [candidate] (244.36 ms) : 0, 244360
AppSec [baseline] (54.508 ms) : 0, 54508
AppSec [candidate] (55.63 ms) : 0, 55630
Debugger [baseline] (5.115 ms) : 0, 5115
Debugger [candidate] (4.5 ms) : 0, 4500
Remote Config [baseline] (709.147 µs) : 0, 709
Remote Config [candidate] (739.682 µs) : 0, 740
Telemetry [baseline] (13.691 ms) : 0, 13691
Telemetry [candidate] (15.991 ms) : 0, 15991
section iast
BytebuddyAgent [baseline] (839.899 ms) : 0, 839899
BytebuddyAgent [candidate] (839.641 ms) : 0, 839641
GlobalTracer [baseline] (230.077 ms) : 0, 230077
GlobalTracer [candidate] (230.491 ms) : 0, 230491
IAST [baseline] (22.869 ms) : 0, 22869
IAST [candidate] (23.11 ms) : 0, 23110
AppSec [baseline] (56.062 ms) : 0, 56062
AppSec [candidate] (55.893 ms) : 0, 55893
Debugger [baseline] (4.158 ms) : 0, 4158
Debugger [candidate] (4.15 ms) : 0, 4150
Remote Config [baseline] (609.957 µs) : 0, 610
Remote Config [candidate] (601.425 µs) : 0, 601
Telemetry [baseline] (8.81 ms) : 0, 8810
Telemetry [candidate] (8.702 ms) : 0, 8702
section iast_HARDCODED_SECRET_DISABLED
BytebuddyAgent [baseline] (838.146 ms) : 0, 838146
BytebuddyAgent [candidate] (840.48 ms) : 0, 840480
GlobalTracer [baseline] (229.951 ms) : 0, 229951
GlobalTracer [candidate] (230.833 ms) : 0, 230833
IAST [baseline] (22.958 ms) : 0, 22958
IAST [candidate] (22.887 ms) : 0, 22887
AppSec [baseline] (56.136 ms) : 0, 56136
AppSec [candidate] (55.855 ms) : 0, 55855
Debugger [baseline] (4.165 ms) : 0, 4165
Debugger [candidate] (4.198 ms) : 0, 4198
Remote Config [baseline] (596.05 µs) : 0, 596
Remote Config [candidate] (612.685 µs) : 0, 613
Telemetry [baseline] (8.809 ms) : 0, 8809
Telemetry [candidate] (8.83 ms) : 0, 8830
section iast_TELEMETRY_OFF
BytebuddyAgent [baseline] (834.826 ms) : 0, 834826
BytebuddyAgent [candidate] (843.72 ms) : 0, 843720
GlobalTracer [baseline] (229.897 ms) : 0, 229897
GlobalTracer [candidate] (230.387 ms) : 0, 230387
IAST [baseline] (22.291 ms) : 0, 22291
IAST [candidate] (22.182 ms) : 0, 22182
AppSec [baseline] (55.825 ms) : 0, 55825
AppSec [candidate] (56.071 ms) : 0, 56071
Debugger [baseline] (4.134 ms) : 0, 4134
Debugger [candidate] (4.112 ms) : 0, 4112
Remote Config [baseline] (620.625 µs) : 0, 621
Remote Config [candidate] (604.014 µs) : 0, 604
Telemetry [baseline] (8.649 ms) : 0, 8649
Telemetry [candidate] (8.578 ms) : 0, 8578
Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.48.0-SNAPSHOT~d16b87deb5, baseline=1.48.0-SNAPSHOT~05ccd9aa10
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.049 s) : 0, 1049062
Total [baseline] (10.544 s) : 0, 10544152
Agent [candidate] (1.061 s) : 0, 1061148
Total [candidate] (10.519 s) : 0, 10518871
section appsec
Agent [baseline] (1.191 s) : 0, 1190783
Total [baseline] (10.784 s) : 0, 10783879
Agent [candidate] (1.191 s) : 0, 1191458
Total [candidate] (10.791 s) : 0, 10791108
section iast
Agent [baseline] (1.189 s) : 0, 1189280
Total [baseline] (11.046 s) : 0, 11045762
Agent [candidate] (1.191 s) : 0, 1191023
Total [candidate] (11.045 s) : 0, 11044998
section profiling
Agent [baseline] (1.272 s) : 0, 1272173
Total [baseline] (10.856 s) : 0, 10855954
Agent [candidate] (1.274 s) : 0, 1273561
Total [candidate] (10.86 s) : 0, 10860286
gantt
title petclinic - break down per module: candidate=1.48.0-SNAPSHOT~d16b87deb5, baseline=1.48.0-SNAPSHOT~05ccd9aa10
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (720.153 ms) : 0, 720153
BytebuddyAgent [candidate] (727.664 ms) : 0, 727664
GlobalTracer [baseline] (240.522 ms) : 0, 240522
GlobalTracer [candidate] (242.604 ms) : 0, 242604
AppSec [baseline] (54.917 ms) : 0, 54917
AppSec [candidate] (55.139 ms) : 0, 55139
Debugger [baseline] (4.445 ms) : 0, 4445
Debugger [candidate] (4.45 ms) : 0, 4450
Remote Config [baseline] (723.285 µs) : 0, 723
Remote Config [candidate] (732.578 µs) : 0, 733
Telemetry [baseline] (12.29 ms) : 0, 12290
Telemetry [candidate] (14.305 ms) : 0, 14305
section appsec
BytebuddyAgent [baseline] (737.72 ms) : 0, 737720
BytebuddyAgent [candidate] (737.859 ms) : 0, 737859
GlobalTracer [baseline] (236.759 ms) : 0, 236759
GlobalTracer [candidate] (236.677 ms) : 0, 236677
AppSec [baseline] (176.438 ms) : 0, 176438
AppSec [candidate] (176.633 ms) : 0, 176633
Debugger [baseline] (4.293 ms) : 0, 4293
Debugger [candidate] (4.322 ms) : 0, 4322
Remote Config [baseline] (649.599 µs) : 0, 650
Remote Config [candidate] (645.135 µs) : 0, 645
Telemetry [baseline] (8.187 ms) : 0, 8187
Telemetry [candidate] (8.612 ms) : 0, 8612
IAST [baseline] (21.533 ms) : 0, 21533
IAST [candidate] (21.364 ms) : 0, 21364
section iast
BytebuddyAgent [baseline] (847.705 ms) : 0, 847705
BytebuddyAgent [candidate] (849.313 ms) : 0, 849313
GlobalTracer [baseline] (232.254 ms) : 0, 232254
GlobalTracer [candidate] (232.213 ms) : 0, 232213
AppSec [baseline] (56.302 ms) : 0, 56302
AppSec [candidate] (56.526 ms) : 0, 56526
Debugger [baseline] (4.199 ms) : 0, 4199
Debugger [candidate] (4.199 ms) : 0, 4199
Remote Config [baseline] (618.875 µs) : 0, 619
Remote Config [candidate] (611.31 µs) : 0, 611
Telemetry [baseline] (8.935 ms) : 0, 8935
Telemetry [candidate] (8.878 ms) : 0, 8878
IAST [baseline] (23.206 ms) : 0, 23206
IAST [candidate] (23.178 ms) : 0, 23178
section profiling
ProfilingAgent [baseline] (101.274 ms) : 0, 101274
ProfilingAgent [candidate] (102.227 ms) : 0, 102227
BytebuddyAgent [baseline] (710.721 ms) : 0, 710721
BytebuddyAgent [candidate] (710.735 ms) : 0, 710735
GlobalTracer [baseline] (350.286 ms) : 0, 350286
GlobalTracer [candidate] (351.512 ms) : 0, 351512
AppSec [baseline] (54.321 ms) : 0, 54321
AppSec [candidate] (53.558 ms) : 0, 53558
Debugger [baseline] (4.258 ms) : 0, 4258
Debugger [candidate] (4.279 ms) : 0, 4279
Remote Config [baseline] (702.995 µs) : 0, 703
Remote Config [candidate] (711.763 µs) : 0, 712
Telemetry [baseline] (8.951 ms) : 0, 8951
Telemetry [candidate] (8.893 ms) : 0, 8893
Profiling [baseline] (101.3 ms) : 0, 101300
Profiling [candidate] (102.253 ms) : 0, 102253
LoadParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 13 metrics, 17 unstable metrics. Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.48.0-SNAPSHOT~d16b87deb5, baseline=1.48.0-SNAPSHOT~05ccd9aa10
dateFormat X
axisFormat %s
section baseline
no_agent (1.362 ms) : 1344, 1381
. : milestone, 1362,
appsec (1.731 ms) : 1708, 1755
. : milestone, 1731,
appsec_no_iast (1.759 ms) : 1736, 1782
. : milestone, 1759,
code_origins (1.689 ms) : 1662, 1716
. : milestone, 1689,
iast (1.521 ms) : 1497, 1546
. : milestone, 1521,
profiling (1.517 ms) : 1493, 1541
. : milestone, 1517,
tracing (1.517 ms) : 1494, 1541
. : milestone, 1517,
section candidate
no_agent (1.367 ms) : 1348, 1386
. : milestone, 1367,
appsec (1.746 ms) : 1722, 1769
. : milestone, 1746,
appsec_no_iast (1.741 ms) : 1717, 1765
. : milestone, 1741,
code_origins (1.691 ms) : 1665, 1717
. : milestone, 1691,
iast (1.526 ms) : 1501, 1551
. : milestone, 1526,
profiling (1.551 ms) : 1527, 1575
. : milestone, 1551,
tracing (1.508 ms) : 1482, 1533
. : milestone, 1508,
Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.48.0-SNAPSHOT~d16b87deb5, baseline=1.48.0-SNAPSHOT~05ccd9aa10
dateFormat X
axisFormat %s
section baseline
no_agent (383.872 µs) : 364, 404
. : milestone, 384,
iast (515.738 µs) : 494, 538
. : milestone, 516,
iast_FULL (733.98 µs) : 712, 756
. : milestone, 734,
iast_GLOBAL (568.696 µs) : 546, 591
. : milestone, 569,
iast_HARDCODED_SECRET_DISABLED (519.428 µs) : 497, 542
. : milestone, 519,
iast_INACTIVE (469.275 µs) : 448, 491
. : milestone, 469,
iast_TELEMETRY_OFF (499.795 µs) : 478, 522
. : milestone, 500,
tracing (463.721 µs) : 443, 485
. : milestone, 464,
section candidate
no_agent (384.388 µs) : 363, 406
. : milestone, 384,
iast (517.752 µs) : 496, 540
. : milestone, 518,
iast_FULL (732.548 µs) : 711, 755
. : milestone, 733,
iast_GLOBAL (558.019 µs) : 536, 580
. : milestone, 558,
iast_HARDCODED_SECRET_DISABLED (518.475 µs) : 497, 540
. : milestone, 518,
iast_INACTIVE (469.984 µs) : 448, 492
. : milestone, 470,
iast_TELEMETRY_OFF (505.841 µs) : 484, 528
. : milestone, 506,
tracing (466.307 µs) : 445, 487
. : milestone, 466,
DacapoParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 12 metrics, 0 unstable metrics. Execution time for tomcatgantt
title tomcat - execution time [CI 0.99] : candidate=1.48.0-SNAPSHOT~d16b87deb5, baseline=1.48.0-SNAPSHOT~05ccd9aa10
dateFormat X
axisFormat %s
section baseline
no_agent (1.477 ms) : 1466, 1488
. : milestone, 1477,
appsec (2.353 ms) : 2310, 2397
. : milestone, 2353,
iast (2.127 ms) : 2072, 2183
. : milestone, 2127,
iast_GLOBAL (2.163 ms) : 2108, 2219
. : milestone, 2163,
profiling (1.98 ms) : 1937, 2024
. : milestone, 1980,
tracing (1.951 ms) : 1909, 1994
. : milestone, 1951,
section candidate
no_agent (1.477 ms) : 1465, 1488
. : milestone, 1477,
appsec (2.342 ms) : 2299, 2386
. : milestone, 2342,
iast (2.125 ms) : 2070, 2180
. : milestone, 2125,
iast_GLOBAL (2.175 ms) : 2119, 2231
. : milestone, 2175,
profiling (2.003 ms) : 1957, 2048
. : milestone, 2003,
tracing (1.962 ms) : 1919, 2004
. : milestone, 1962,
Execution time for biojavagantt
title biojava - execution time [CI 0.99] : candidate=1.48.0-SNAPSHOT~d16b87deb5, baseline=1.48.0-SNAPSHOT~05ccd9aa10
dateFormat X
axisFormat %s
section baseline
no_agent (15.276 s) : 15276000, 15276000
. : milestone, 15276000,
appsec (14.99 s) : 14990000, 14990000
. : milestone, 14990000,
iast (18.897 s) : 18897000, 18897000
. : milestone, 18897000,
iast_GLOBAL (17.951 s) : 17951000, 17951000
. : milestone, 17951000,
profiling (15.089 s) : 15089000, 15089000
. : milestone, 15089000,
tracing (14.99 s) : 14990000, 14990000
. : milestone, 14990000,
section candidate
no_agent (15.019 s) : 15019000, 15019000
. : milestone, 15019000,
appsec (14.819 s) : 14819000, 14819000
. : milestone, 14819000,
iast (19.292 s) : 19292000, 19292000
. : milestone, 19292000,
iast_GLOBAL (17.889 s) : 17889000, 17889000
. : milestone, 17889000,
profiling (15.306 s) : 15306000, 15306000
. : milestone, 15306000,
tracing (15.051 s) : 15051000, 15051000
. : milestone, 15051000,
|
85d0946
to
dd637fd
Compare
private static LLMObsSpanFactory SPAN_FACTORY = NoOpLLMObsSpanFactory.INSTANCE; | ||
|
||
/** | ||
* This a hook for injecting SpanFactory implementation. It should only be used internally by |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI, internal APIs should be added to the internal-api
module.
You can keep the same package structure and they will still be visible to the tracer internals.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah gotcha, thanks!
14f71b3
to
5d90450
Compare
dd637fd
to
85debfc
Compare
Hi! 👋 Looks like you updated a Git Submodule.
|
85debfc
to
98060a9
Compare
Hi! 👋 Looks like you updated a Git Submodule.
|
98060a9
to
62bc9a0
Compare
2b23b61
to
08b677e
Compare
08b677e
to
5b12d55
Compare
5b12d55
to
77ddec8
Compare
c1f63dc
to
6e250a2
Compare
6e250a2
to
d16b87d
Compare
What Does This Do
Add APIs for LLM obs manual instrumentation
Starting spans
Interacting with spans
A sample spring controller using the APIs above
logging for the spans above
Motivation
Additional Notes
Contributor Checklist
type:
and (comp:
orinst:
) labels in addition to any usefull labelsclose
,fix
or any linking keywords when referencing an issue.Use
solves
instead, and assign the PR milestone to the issueJira ticket: [PROJ-IDENT]