...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package v3alpha1
21
22 import (
23 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
24 )
25
26 type TraceSampling struct {
27 Client *int `json:"client,omitempty"`
28 Random *int `json:"random,omitempty"`
29 Overall *int `json:"overall,omitempty"`
30 }
31
32
33 type PropagationMode string
34
35 type TraceConfig struct {
36 AccessTokenFile string `json:"access_token_file,omitempty"`
37 CollectorCluster string `json:"collector_cluster,omitempty"`
38 CollectorEndpoint string `json:"collector_endpoint,omitempty"`
39
40 CollectorEndpointVersion string `json:"collector_endpoint_version,omitempty"`
41 CollectorHostname string `json:"collector_hostname,omitempty"`
42 PropagationModes []PropagationMode `json:"propagation_modes,omitempty"`
43 TraceID128Bit *bool `json:"trace_id_128bit,omitempty"`
44 SharedSpanContext *bool `json:"shared_span_context,omitempty"`
45 ServiceName string `json:"service_name,omitempty"`
46 }
47
48
49 type TracingCustomTagTypeLiteral struct {
50
51 Value string `json:"value"`
52 }
53
54
55 type TracingCustomTagTypeEnvironment struct {
56
57 Name string `json:"name"`
58 DefaultValue *string `json:"default_value,omitempty"`
59 }
60
61
62 type TracingCustomTagTypeRequestHeader struct {
63
64 Name string `json:"name"`
65 DefaultValue *string `json:"default_value,omitempty"`
66 }
67
68
69 type TracingCustomTag struct {
70
71 Tag string `json:"tag"`
72
73
74
75
76
77 Literal *TracingCustomTagTypeLiteral `json:"literal,omitempty"`
78
79
80 Environment *TracingCustomTagTypeEnvironment `json:"environment,omitempty"`
81
82
83 Header *TracingCustomTagTypeRequestHeader `json:"request_header,omitempty"`
84 }
85
86
87 type TracingServiceSpec struct {
88 AmbassadorID AmbassadorID `json:"ambassador_id,omitempty"`
89
90
91
92 Driver string `json:"driver,omitempty"`
93
94 Service string `json:"service,omitempty"`
95 Sampling *TraceSampling `json:"sampling,omitempty"`
96
97
98 DeprecatedTagHeaders []string `json:"tag_headers,omitempty"`
99 CustomTags []TracingCustomTag `json:"custom_tags,omitempty"`
100 Config *TraceConfig `json:"config,omitempty"`
101 StatsName string `json:"stats_name,omitempty"`
102 }
103
104
105
106
107 type TracingService struct {
108 metav1.TypeMeta `json:""`
109 metav1.ObjectMeta `json:"metadata,omitempty"`
110
111 Spec TracingServiceSpec `json:"spec,omitempty"`
112 }
113
114
115
116
117 type TracingServiceList struct {
118 metav1.TypeMeta `json:""`
119 metav1.ListMeta `json:"metadata,omitempty"`
120 Items []TracingService `json:"items"`
121 }
122
123 func init() {
124 SchemeBuilder.Register(&TracingService{}, &TracingServiceList{})
125 }
126
View as plain text