@@ -92,7 +92,7 @@ func (m *CentralizedManifest) createUserRule(svcRule *xraySvc.SamplingRule) *Cen
92
92
clock := & utils.DefaultClock {}
93
93
rand := & utils.DefaultRand {}
94
94
95
- sr := & samplingRule {
95
+ sr := & SamplingRule {
96
96
ServiceName : * svcRule .ServiceName ,
97
97
HTTPMethod : * svcRule .HTTPMethod ,
98
98
URLPath : * svcRule .URLPath ,
@@ -114,7 +114,7 @@ func (m *CentralizedManifest) createUserRule(svcRule *xraySvc.SamplingRule) *Cen
114
114
ruleName : * svcRule .RuleName ,
115
115
priority : * svcRule .Priority ,
116
116
reservoir : cr ,
117
- samplingRule : sr ,
117
+ SamplingRule : sr ,
118
118
serviceType : * svcRule .ServiceType ,
119
119
resourceARN : * svcRule .ResourceARN ,
120
120
attributes : svcRule .Attributes ,
@@ -145,7 +145,7 @@ func (m *CentralizedManifest) createUserRule(svcRule *xraySvc.SamplingRule) *Cen
145
145
func (m * CentralizedManifest ) updateUserRule (r * CentralizedRule , svcRule * xraySvc.SamplingRule ) {
146
146
// Preemptively dereference xraySvc.SamplingRule fields and panic early on nil pointers.
147
147
// A panic in the middle of an update may leave the rule in an inconsistent state.
148
- s := & samplingRule {
148
+ s := & SamplingRule {
149
149
ServiceName : * svcRule .ServiceName ,
150
150
HTTPMethod : * svcRule .HTTPMethod ,
151
151
URLPath : * svcRule .URLPath ,
@@ -159,7 +159,7 @@ func (m *CentralizedManifest) updateUserRule(r *CentralizedRule, svcRule *xraySv
159
159
r .Lock ()
160
160
defer r .Unlock ()
161
161
162
- r .samplingRule = s
162
+ r .SamplingRule = s
163
163
r .priority = p
164
164
r .reservoir .capacity = c
165
165
r .serviceType = * svcRule .ServiceType
@@ -174,7 +174,7 @@ func (m *CentralizedManifest) createDefaultRule(svcRule *xraySvc.SamplingRule) *
174
174
clock := & utils.DefaultClock {}
175
175
rand := & utils.DefaultRand {}
176
176
177
- sr := & samplingRule {
177
+ sr := & SamplingRule {
178
178
FixedTarget : * svcRule .ReservoirSize ,
179
179
Rate : * svcRule .FixedRate ,
180
180
}
@@ -191,7 +191,7 @@ func (m *CentralizedManifest) createDefaultRule(svcRule *xraySvc.SamplingRule) *
191
191
csr := & CentralizedRule {
192
192
ruleName : * svcRule .RuleName ,
193
193
reservoir : cr ,
194
- samplingRule : sr ,
194
+ SamplingRule : sr ,
195
195
clock : clock ,
196
196
rand : rand ,
197
197
}
@@ -221,7 +221,7 @@ func (m *CentralizedManifest) updateDefaultRule(svcRule *xraySvc.SamplingRule) {
221
221
222
222
// Preemptively dereference xraySvc.SamplingRule fields and panic early on nil pointers.
223
223
// A panic in the middle of an update may leave the rule in an inconsistent state.
224
- s := & samplingRule {
224
+ s := & SamplingRule {
225
225
FixedTarget : * svcRule .ReservoirSize ,
226
226
Rate : * svcRule .FixedRate ,
227
227
}
@@ -231,7 +231,7 @@ func (m *CentralizedManifest) updateDefaultRule(svcRule *xraySvc.SamplingRule) {
231
231
r .Lock ()
232
232
defer r .Unlock ()
233
233
234
- r .samplingRule = s
234
+ r .SamplingRule = s
235
235
r .reservoir .capacity = c
236
236
}
237
237
0 commit comments