-
Notifications
You must be signed in to change notification settings - Fork 0
/
ndlb_encode.h
178 lines (143 loc) · 3.31 KB
/
ndlb_encode.h
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
#pragma pack(1)
enum proxy_protocol_Type {
//PROTOCOL_TCP,
PROTOCOL_UDP,
PROTOCOL_TCP_UDP
};
typedef struct wrapheadervar_t {
int whLen;
int apiReqLen;
int awsReqLen;
int funcNameLen;
int tagslength;
short agentType;
short messageType;
long long fpId;
int appId;
enum proxy_protocol_Type protocolType;
}wrapheadervar_t;
typedef struct wrapheader_t {
wrapheadervar_t wrapheadervar;
char *apiReqId;
char *awsReqId;
char *funcName;
char *tags;//; separated key=value pairs
}wrapheader_t;
typedef struct msgHdr_t
{
int header_len;
int total_len;
int msg_type;
}msgHdr_t;
extern msgHdr_t msgHdr;
typedef struct transactionStartVar_t
{
int fp_header;
int url;
int btHeaderValue;
int ndCookieSet;
int nvCookieSet;
int correlationHeader;
long long flowpathinstance;
long long qTimeMS;
long long startTimeFP;
}transactionStartVar_t;
extern transactionStartVar_t transactionStartVar;
typedef struct transactionStart_t
{
transactionStartVar_t transactionStartVar;
char *fp_header;
char *url;
char *btHeaderValue;
char *ndCookieSet;
char *nvCookieSet;
char *correlationHeader;
}transactionStart_t;
extern transactionStart_t transactionStart;
typedef struct transactionEnd_t
{
int statuscode;
long long flowpathinstance;
long long endTime;
long long cpuTime;
int tracerequest;
}transactionEnd_t;
extern transactionEnd_t transactionEnd;
typedef struct MethodEntryVar_t
{
int mid;
long long flowpathinstance;
long long threadId;
long long startTime;
int methodName;
int query_string;
int urlParameter;
int query_parameter;
}MethodEntryVar_t;
extern MethodEntryVar_t MethodEntryVar;
typedef struct MethodEntry_t
{
struct MethodEntryVar_t MethodEntryVar;
char *methodName;
char *query_string;
char *urlParameter;
char* query_parameter;
}MethodEntry_t;
extern MethodEntry_t MethodEntry;
typedef struct MethodExitVar_t
{
int statusCode;
int mid;
int eventType;
int isCallout;
long long threadId;
long long duration;
long long flowpathinstance;
long long cpuTime;
int methodName;
int backend_header;
int requestNotificationPhase;
long long tierCallOutSeqNum;
long long endTime;
}MethodExitVar_t;
extern MethodExitVar_t MethodExitVar;
typedef struct MethodExit_t
{
MethodExitVar_t MethodExitVar;
char *methodName;
char *backend_header;
char *requestNotificationPhase;
}MethodExit_t;
extern MethodExit_t MethodExit;
typedef struct transactionEncodeVarHttp_t
{
int statuscode;
int buffer_len;
int type_len;
int OTL_version;
int OTL_traceflag;
int OTL_traceID;
int OTL_parentID;
int OTL_tracestate;
long long flowpathinstance;
}transactionEncodeVarHttp_t;
extern transactionEncodeVarHttp_t transactionEncodeVarHttp;
typedef struct transactionEncodeHttp_t
{
struct transactionEncodeVarHttp_t transactionEncodeVarHttp;
char* buffer;
char* type;
char* OTL_traceID;
char* OTL_parentID;
char* OTL_tracestate;
} transactionEncodeHttp_t;
extern transactionEncodeHttp_t transactionEncodeHttp;
msgHdr_t msgHdr;
transactionStartVar_t transactionStartVar;
transactionStart_t transactionStart;
MethodEntryVar_t MethodEntryVar;
MethodEntry_t MethodEntry;
MethodExitVar_t MethodExitVar;
MethodExit_t MethodExit;
transactionEncodeVarHttp_t transactionEncodeVarHttp;
transactionEncodeHttp_t transactionEncodeHttp;