-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathSpan.java
More file actions
90 lines (81 loc) · 2.23 KB
/
Span.java
File metadata and controls
90 lines (81 loc) · 2.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
package io.lumigo.models;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
@AllArgsConstructor
@Builder(toBuilder = true)
@Data(staticConstructor = "of")
public class Span {
private String name;
private long started;
private long ended;
private String runtime;
private String id;
private String type;
private String memoryAllocated;
private String transactionId;
private String requestId;
private String account;
private long maxFinishTime;
private String event;
private String envs;
private String region;
private Long reporter_rtt;
private Error error;
private String token;
private String return_value;
private Info info;
private String readiness;
private String parentId;
@AllArgsConstructor
@Builder(toBuilder = true)
@Data(staticConstructor = "of")
public static class Info {
private Tracer tracer;
private TraceId traceId;
private String logStreamName;
private String logGroupName;
private String triggeredBy;
private String arn;
private String httpMethod;
private String resource;
private String api;
private String stage;
private String messageId;
private List<String> messageIds;
private List<Map<String, String>> tags;
private long approxEventCreationTime;
}
@AllArgsConstructor
@Builder(toBuilder = true)
@Data(staticConstructor = "of")
public static class Tracer {
private String version;
}
@AllArgsConstructor
@Builder(toBuilder = true)
@Data(staticConstructor = "of")
public static class TraceId {
@JsonProperty("Root")
private String root;
}
@AllArgsConstructor
@Builder(toBuilder = true)
@Data(staticConstructor = "of")
public static class Error {
private String type;
private String message;
private String stacktrace;
}
public enum READINESS {
WARM,
COLD;
public String toString() {
return name().toLowerCase(Locale.ENGLISH);
}
}
}