@@ -63,7 +63,7 @@ public void cleanup() {
6363 public void testOtelStorageModeContext () throws Exception {
6464 Path jfrFile = Files .createTempFile ("otel-ctx-otel" , ".jfr" );
6565
66- profiler .execute (String .format ("start,cpu=1ms,jfr,file=%s" , jfrFile .toAbsolutePath ()));
66+ profiler .execute (String .format ("start,cpu=1ms,attributes=tag1;tag2;tag3, jfr,file=%s" , jfrFile .toAbsolutePath ()));
6767 profilerStarted = true ;
6868
6969 long localRootSpanId = 0x1111222233334444L ;
@@ -84,7 +84,7 @@ public void testOtelStorageModeContext() throws Exception {
8484 public void testOtelModeStartsOnAnyPlatform () throws Exception {
8585 Path jfrFile = Files .createTempFile ("otel-ctx-any" , ".jfr" );
8686
87- profiler .execute (String .format ("start,cpu=1ms,jfr,file=%s" , jfrFile .toAbsolutePath ()));
87+ profiler .execute (String .format ("start,cpu=1ms,attributes=tag1;tag2;tag3, jfr,file=%s" , jfrFile .toAbsolutePath ()));
8888 profilerStarted = true ;
8989
9090 // Context operations should not crash
@@ -98,7 +98,7 @@ public void testOtelModeStartsOnAnyPlatform() throws Exception {
9898 public void testOtelModeClearContext () throws Exception {
9999 Path jfrFile = Files .createTempFile ("otel-ctx-clear" , ".jfr" );
100100
101- profiler .execute (String .format ("start,cpu=1ms,jfr,file=%s" , jfrFile .toAbsolutePath ()));
101+ profiler .execute (String .format ("start,cpu=1ms,attributes=tag1;tag2;tag3, jfr,file=%s" , jfrFile .toAbsolutePath ()));
102102 profilerStarted = true ;
103103
104104 profiler .setContext (0xCAFEBABEL , 0xDEADBEEFL , 0L , 0x12345678L );
@@ -117,7 +117,7 @@ public void testOtelModeClearContext() throws Exception {
117117 public void testOtelModeCustomAttributes () throws Exception {
118118 Path jfrFile = Files .createTempFile ("otel-ctx-attrs" , ".jfr" );
119119
120- profiler .execute (String .format ("start,cpu=1ms,contextattribute =http.route;db.system,jfr,file=%s" , jfrFile .toAbsolutePath ()));
120+ profiler .execute (String .format ("start,cpu=1ms,attributes =http.route;db.system,jfr,file=%s" , jfrFile .toAbsolutePath ()));
121121 profilerStarted = true ;
122122
123123 // Register attribute keys
@@ -146,7 +146,7 @@ public void testOtelModeCustomAttributes() throws Exception {
146146 public void testSetContextAttribute () throws Exception {
147147 Path jfrFile = Files .createTempFile ("otel-ctx-attr" , ".jfr" );
148148
149- profiler .execute (String .format ("start,cpu=1ms,contextattribute =http.route,jfr,file=%s" , jfrFile .toAbsolutePath ()));
149+ profiler .execute (String .format ("start,cpu=1ms,attributes =http.route,jfr,file=%s" , jfrFile .toAbsolutePath ()));
150150 profilerStarted = true ;
151151
152152 profiler .setContext (0x456L , 0x123L , 0L , 0x789L );
@@ -163,7 +163,7 @@ public void testSetContextAttribute() throws Exception {
163163 public void testOtelModeAttributeOverflow () throws Exception {
164164 Path jfrFile = Files .createTempFile ("otel-ctx-overflow" , ".jfr" );
165165
166- profiler .execute (String .format ("start,cpu=1ms,contextattribute =k0;k1;k2;k3;k4,jfr,file=%s" , jfrFile .toAbsolutePath ()));
166+ profiler .execute (String .format ("start,cpu=1ms,attributes =k0;k1;k2;k3;k4,jfr,file=%s" , jfrFile .toAbsolutePath ()));
167167 profilerStarted = true ;
168168
169169 OTelContext .getInstance ().registerAttributeKeys ("k0" , "k1" , "k2" , "k3" , "k4" );
0 commit comments