@@ -42,46 +42,46 @@ public static void setDelegate(final BytecodeUtilDelegate delegate) {
4242 MicrometerUtil .setDelegate (new MicrometerUtilDelegate () {
4343 @ Override
4444 public void trackMetric (String name , double value , Integer count , Double min , Double max , Map <String , String > properties ) {
45- delegate .trackMetric (name , value , count , min , max , null , properties , Collections .emptyMap (), null );
45+ delegate .trackMetric (null , name , value , count , min , max , null , properties , Collections .emptyMap (), null );
4646 }
4747 });
4848 }
4949 }
5050
51- public static void trackEvent (String name , Map <String , String > properties , Map <String , String > tags ,
51+ public static void trackEvent (Date timestamp , String name , Map <String , String > properties , Map <String , String > tags ,
5252 Map <String , Double > metrics , String instrumentationKey ) {
5353 if (delegate != null ) {
54- delegate .trackEvent (name , properties , tags , metrics , instrumentationKey );
54+ delegate .trackEvent (timestamp , name , properties , tags , metrics , instrumentationKey );
5555 }
5656 }
5757
58- public static void trackMetric (String name , double value , Integer count , Double min , Double max , Double stdDev ,
58+ public static void trackMetric (Date timestamp , String name , double value , Integer count , Double min , Double max , Double stdDev ,
5959 Map <String , String > properties , Map <String , String > tags , String instrumentationKey ) {
6060 if (delegate != null ) {
61- delegate .trackMetric (name , value , count , min , max , stdDev , properties , tags , instrumentationKey );
61+ delegate .trackMetric (timestamp , name , value , count , min , max , stdDev , properties , tags , instrumentationKey );
6262 }
6363 }
6464
65- public static void trackDependency (String name , String id , String resultCode , Long totalMillis , boolean success ,
65+ public static void trackDependency (Date timestamp , String name , String id , String resultCode , Long totalMillis , boolean success ,
6666 String commandName , String type , String target , Map <String , String > properties ,
6767 Map <String , String > tags , Map <String , Double > metrics , String instrumentationKey ) {
6868 if (delegate != null ) {
69- delegate .trackDependency (name , id , resultCode , totalMillis , success , commandName , type , target , properties ,
69+ delegate .trackDependency (timestamp , name , id , resultCode , totalMillis , success , commandName , type , target , properties ,
7070 tags , metrics , instrumentationKey );
7171 }
7272 }
7373
74- public static void trackPageView (String name , URI uri , long totalMillis , Map <String , String > properties , Map <String , String > tags ,
74+ public static void trackPageView (Date timestamp , String name , URI uri , long totalMillis , Map <String , String > properties , Map <String , String > tags ,
7575 Map <String , Double > metrics , String instrumentationKey ) {
7676 if (delegate != null ) {
77- delegate .trackPageView (name , uri , totalMillis , properties , tags , metrics , instrumentationKey );
77+ delegate .trackPageView (timestamp , name , uri , totalMillis , properties , tags , metrics , instrumentationKey );
7878 }
7979 }
8080
81- public static void trackTrace (String message , int severityLevel , Map <String , String > properties , Map <String , String > tags ,
81+ public static void trackTrace (Date timestamp , String message , int severityLevel , Map <String , String > properties , Map <String , String > tags ,
8282 String instrumentationKey ) {
8383 if (delegate != null ) {
84- delegate .trackTrace (message , severityLevel , properties , tags , instrumentationKey );
84+ delegate .trackTrace (timestamp , message , severityLevel , properties , tags , instrumentationKey );
8585 }
8686 }
8787
@@ -94,10 +94,10 @@ public static void trackRequest(String id, String name, URL url, Date timestamp,
9494 }
9595 }
9696
97- public static void trackException (Exception exception , Map <String , String > properties , Map <String , String > tags ,
97+ public static void trackException (Date timestamp , Exception exception , Map <String , String > properties , Map <String , String > tags ,
9898 Map <String , Double > metrics , String instrumentationKey ) {
9999 if (delegate != null ) {
100- delegate .trackException (exception , properties , tags , metrics , instrumentationKey );
100+ delegate .trackException (timestamp , exception , properties , tags , metrics , instrumentationKey );
101101 }
102102 }
103103
@@ -167,30 +167,30 @@ public static void onExit() {
167167
168168 public interface BytecodeUtilDelegate {
169169
170- void trackEvent (String name , Map <String , String > properties , Map <String , String > tags , Map <String , Double > metrics ,
170+ void trackEvent (Date timestamp , String name , Map <String , String > properties , Map <String , String > tags , Map <String , Double > metrics ,
171171 String instrumentationKey );
172172
173- void trackMetric (String name , double value , Integer count , Double min , Double max ,
173+ void trackMetric (Date timestamp , String name , double value , Integer count , Double min , Double max ,
174174 Double stdDev , Map <String , String > properties , Map <String , String > tags ,
175175 String instrumentationKey );
176176
177- void trackDependency (String name , String id , String resultCode , Long totalMillis ,
177+ void trackDependency (Date timestamp , String name , String id , String resultCode , Long totalMillis ,
178178 boolean success , String commandName , String type , String target ,
179179 Map <String , String > properties , Map <String , String > tags , Map <String , Double > metrics ,
180180 String instrumentationKey );
181181
182- void trackPageView (String name , URI uri , long totalMillis , Map <String , String > properties , Map <String , String > tags ,
182+ void trackPageView (Date timestamp , String name , URI uri , long totalMillis , Map <String , String > properties , Map <String , String > tags ,
183183 Map <String , Double > metrics , String instrumentationKey );
184184
185- void trackTrace (String message , int severityLevel , Map <String , String > properties , Map <String , String > tags ,
185+ void trackTrace (Date timestamp , String message , int severityLevel , Map <String , String > properties , Map <String , String > tags ,
186186 String instrumentationKey );
187187
188188 void trackRequest (String id , String name , URL url , Date timestamp , Long duration , String responseCode , boolean success ,
189189 String source , Map <String , String > properties , Map <String , String > tags , Map <String , Double > metrics ,
190190 String instrumentationKey );
191191
192192 // TODO also handle cases where ExceptionTelemetry parsedStack is used directly instead of indirectly through Exception
193- void trackException (Exception exception , Map <String , String > properties , Map <String , String > tags ,
193+ void trackException (Date timestamp , Exception exception , Map <String , String > properties , Map <String , String > tags ,
194194 Map <String , Double > metrics , String instrumentationKey );
195195
196196 void flush ();
0 commit comments