Skip to content

Commit ed4c154

Browse files
committed
Removed deprecated traces
1 parent b4b5c1e commit ed4c154

File tree

3 files changed

+2
-693
lines changed

3 files changed

+2
-693
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
* Removed deprecated traces
2+
13
## v3.26.0
24
* Fixed data race on session stream queries
35
* Renamed `internal/router` package to `internal/balancer` for unambiguous understanding of package mission

trace/driver.go

Lines changed: 0 additions & 138 deletions
Original file line numberDiff line numberDiff line change
@@ -55,27 +55,6 @@ type (
5555

5656
// Credentials events
5757
OnGetCredentials func(DriverGetCredentialsStartInfo) func(DriverGetCredentialsDoneInfo)
58-
59-
// Deprecated: has no effect now
60-
OnConnUsagesChange func(DriverConnUsagesChangeInfo)
61-
// Deprecated: has no effect now
62-
OnConnStreamUsagesChange func(DriverConnStreamUsagesChangeInfo)
63-
// Deprecated: has no effect now
64-
OnConnRelease func(DriverConnReleaseStartInfo) func(DriverConnReleaseDoneInfo)
65-
// Deprecated: has no effect now
66-
OnClusterInit func(DriverClusterInitStartInfo) func(DriverClusterInitDoneInfo)
67-
// Deprecated: has no effect now
68-
OnClusterClose func(DriverClusterCloseStartInfo) func(DriverClusterCloseDoneInfo)
69-
// Deprecated: has no effect now
70-
OnClusterGet func(DriverClusterGetStartInfo) func(DriverClusterGetDoneInfo)
71-
// Deprecated: has no effect now
72-
OnClusterInsert func(DriverClusterInsertStartInfo) func(DriverClusterInsertDoneInfo)
73-
// Deprecated: has no effect now
74-
OnClusterRemove func(DriverClusterRemoveStartInfo) func(DriverClusterRemoveDoneInfo)
75-
// Deprecated: has no effect now
76-
OnPessimizeNode func(DriverPessimizeNodeStartInfo) func(DriverPessimizeNodeDoneInfo)
77-
// Deprecated: has no effect now
78-
OnUnpessimizeNode func(DriverUnpessimizeNodeStartInfo) func(DriverUnpessimizeNodeDoneInfo)
7958
}
8059
)
8160

@@ -129,34 +108,6 @@ type EndpointInfo interface {
129108
}
130109

131110
type (
132-
// Deprecated: has no effect now
133-
DriverClusterInsertStartInfo struct {
134-
// Context make available context in trace callback function.
135-
// Pointer to context provide replacement of context in trace callback function.
136-
// Warning: concurrent access to pointer on client side must be excluded.
137-
// Safe replacement of context are provided only inside callback function
138-
Context *context.Context
139-
Endpoint EndpointInfo
140-
}
141-
// Deprecated: has no effect now
142-
DriverClusterInsertDoneInfo struct {
143-
Inserted bool
144-
State ConnState
145-
}
146-
// Deprecated: has no effect now
147-
DriverClusterRemoveStartInfo struct {
148-
// Context make available context in trace callback function.
149-
// Pointer to context provide replacement of context in trace callback function.
150-
// Warning: concurrent access to pointer on client side must be excluded.
151-
// Safe replacement of context are provided only inside callback function
152-
Context *context.Context
153-
Endpoint EndpointInfo
154-
}
155-
// Deprecated: has no effect now
156-
DriverClusterRemoveDoneInfo struct {
157-
Removed bool
158-
State ConnState
159-
}
160111
DriverConnStateChangeStartInfo struct {
161112
Endpoint EndpointInfo
162113
State ConnState
@@ -275,29 +226,6 @@ type (
275226
DriverConnAllowDoneInfo struct {
276227
State ConnState
277228
}
278-
// Deprecated: has no effect now
279-
DriverConnReleaseStartInfo struct {
280-
// Context make available context in trace callback function.
281-
// Pointer to context provide replacement of context in trace callback function.
282-
// Warning: concurrent access to pointer on client side must be excluded.
283-
// Safe replacement of context are provided only inside callback function
284-
Context *context.Context
285-
Endpoint EndpointInfo
286-
}
287-
// Deprecated: has no effect now
288-
DriverConnReleaseDoneInfo struct {
289-
Error error
290-
}
291-
// Deprecated: has no effect now
292-
DriverConnUsagesChangeInfo struct {
293-
Endpoint EndpointInfo
294-
Usages int
295-
}
296-
// Deprecated: has no effect now
297-
DriverConnStreamUsagesChangeInfo struct {
298-
Endpoint EndpointInfo
299-
Usages int
300-
}
301229
DriverConnInvokeStartInfo struct {
302230
// Context make available context in trace callback function.
303231
// Pointer to context provide replacement of context in trace callback function.
@@ -329,43 +257,6 @@ type (
329257
State ConnState
330258
Error error
331259
}
332-
// Deprecated: has no effect now
333-
DriverClusterInitStartInfo struct {
334-
// Context make available context in trace callback function.
335-
// Pointer to context provide replacement of context in trace callback function.
336-
// Warning: concurrent access to pointer on client side must be excluded.
337-
// Safe replacement of context are provided only inside callback function
338-
Context *context.Context
339-
}
340-
// Deprecated: has no effect now
341-
DriverClusterInitDoneInfo struct {
342-
Error error
343-
}
344-
// Deprecated: has no effect now
345-
DriverClusterCloseStartInfo struct {
346-
// Context make available context in trace callback function.
347-
// Pointer to context provide replacement of context in trace callback function.
348-
// Warning: concurrent access to pointer on client side must be excluded.
349-
// Safe replacement of context are provided only inside callback function
350-
Context *context.Context
351-
}
352-
// Deprecated: has no effect now
353-
DriverClusterCloseDoneInfo struct {
354-
Error error
355-
}
356-
// Deprecated: has no effect now
357-
DriverClusterGetStartInfo struct {
358-
// Context make available context in trace callback function.
359-
// Pointer to context provide replacement of context in trace callback function.
360-
// Warning: concurrent access to pointer on client side must be excluded.
361-
// Safe replacement of context are provided only inside callback function
362-
Context *context.Context
363-
}
364-
// Deprecated: has no effect now
365-
DriverClusterGetDoneInfo struct {
366-
Endpoint EndpointInfo
367-
Error error
368-
}
369260
DriverBalancerInitStartInfo struct {
370261
// Context make available context in trace callback function.
371262
// Pointer to context provide replacement of context in trace callback function.
@@ -397,35 +288,6 @@ type (
397288
Endpoint EndpointInfo
398289
Error error
399290
}
400-
// Deprecated: has no effect now
401-
DriverPessimizeNodeStartInfo struct {
402-
// Context make available context in trace callback function.
403-
// Pointer to context provide replacement of context in trace callback function.
404-
// Warning: concurrent access to pointer on client side must be excluded.
405-
// Safe replacement of context are provided only inside callback function
406-
Context *context.Context
407-
Endpoint EndpointInfo
408-
State ConnState
409-
Cause error
410-
}
411-
// Deprecated: has no effect now
412-
DriverPessimizeNodeDoneInfo struct {
413-
State ConnState
414-
}
415-
// Deprecated: has no effect now
416-
DriverUnpessimizeNodeStartInfo struct {
417-
// Context make available context in trace callback function.
418-
// Pointer to context provide replacement of context in trace callback function.
419-
// Warning: concurrent access to pointer on client side must be excluded.
420-
// Safe replacement of context are provided only inside callback function
421-
Context *context.Context
422-
Endpoint EndpointInfo
423-
State ConnState
424-
}
425-
// Deprecated: has no effect now
426-
DriverUnpessimizeNodeDoneInfo struct {
427-
State ConnState
428-
}
429291
DriverRepeaterWakeUpStartInfo struct {
430292
// Context make available context in trace callback function.
431293
// Pointer to context provide replacement of context in trace callback function.

0 commit comments

Comments
 (0)