@@ -87,6 +87,7 @@ export function captureEvent(event: Event, hint?: EventHint): string {
87
87
*
88
88
* @deprecated Use getCurrentScope() directly.
89
89
*/
90
+ // eslint-disable-next-line deprecation/deprecation
90
91
export function configureScope ( callback : ( scope : Scope ) => void ) : ReturnType < Hub [ 'configureScope' ] > {
91
92
// eslint-disable-next-line deprecation/deprecation
92
93
getCurrentHub ( ) . configureScope ( callback ) ;
@@ -100,6 +101,7 @@ export function configureScope(callback: (scope: Scope) => void): ReturnType<Hub
100
101
*
101
102
* @param breadcrumb The breadcrumb to record.
102
103
*/
104
+ // eslint-disable-next-line deprecation/deprecation
103
105
export function addBreadcrumb ( breadcrumb : Breadcrumb , hint ?: BreadcrumbHint ) : ReturnType < Hub [ 'addBreadcrumb' ] > {
104
106
// eslint-disable-next-line deprecation/deprecation
105
107
getCurrentHub ( ) . addBreadcrumb ( breadcrumb , hint ) ;
@@ -110,7 +112,7 @@ export function addBreadcrumb(breadcrumb: Breadcrumb, hint?: BreadcrumbHint): Re
110
112
* @param name of the context
111
113
* @param context Any kind of data. This data will be normalized.
112
114
*/
113
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
115
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any, deprecation/deprecation
114
116
export function setContext ( name : string , context : { [ key : string ] : any } | null ) : ReturnType < Hub [ 'setContext' ] > {
115
117
// eslint-disable-next-line deprecation/deprecation
116
118
getCurrentHub ( ) . setContext ( name , context ) ;
@@ -120,6 +122,7 @@ export function setContext(name: string, context: { [key: string]: any } | null)
120
122
* Set an object that will be merged sent as extra data with the event.
121
123
* @param extras Extras object to merge into current context.
122
124
*/
125
+ // eslint-disable-next-line deprecation/deprecation
123
126
export function setExtras ( extras : Extras ) : ReturnType < Hub [ 'setExtras' ] > {
124
127
// eslint-disable-next-line deprecation/deprecation
125
128
getCurrentHub ( ) . setExtras ( extras ) ;
@@ -130,6 +133,7 @@ export function setExtras(extras: Extras): ReturnType<Hub['setExtras']> {
130
133
* @param key String of extra
131
134
* @param extra Any kind of data. This data will be normalized.
132
135
*/
136
+ // eslint-disable-next-line deprecation/deprecation
133
137
export function setExtra ( key : string , extra : Extra ) : ReturnType < Hub [ 'setExtra' ] > {
134
138
// eslint-disable-next-line deprecation/deprecation
135
139
getCurrentHub ( ) . setExtra ( key , extra ) ;
@@ -139,6 +143,7 @@ export function setExtra(key: string, extra: Extra): ReturnType<Hub['setExtra']>
139
143
* Set an object that will be merged sent as tags data with the event.
140
144
* @param tags Tags context object to merge into current context.
141
145
*/
146
+ // eslint-disable-next-line deprecation/deprecation
142
147
export function setTags ( tags : { [ key : string ] : Primitive } ) : ReturnType < Hub [ 'setTags' ] > {
143
148
// eslint-disable-next-line deprecation/deprecation
144
149
getCurrentHub ( ) . setTags ( tags ) ;
@@ -152,6 +157,7 @@ export function setTags(tags: { [key: string]: Primitive }): ReturnType<Hub['set
152
157
* @param key String key of tag
153
158
* @param value Value of tag
154
159
*/
160
+ // eslint-disable-next-line deprecation/deprecation
155
161
export function setTag ( key : string , value : Primitive ) : ReturnType < Hub [ 'setTag' ] > {
156
162
// eslint-disable-next-line deprecation/deprecation
157
163
getCurrentHub ( ) . setTag ( key , value ) ;
@@ -162,6 +168,7 @@ export function setTag(key: string, value: Primitive): ReturnType<Hub['setTag']>
162
168
*
163
169
* @param user User context object to be set in the current context. Pass `null` to unset the user.
164
170
*/
171
+ // eslint-disable-next-line deprecation/deprecation
165
172
export function setUser ( user : User | null ) : ReturnType < Hub [ 'setUser' ] > {
166
173
// eslint-disable-next-line deprecation/deprecation
167
174
getCurrentHub ( ) . setUser ( user ) ;
@@ -272,6 +279,7 @@ export function withActiveSpan<T>(span: Span, callback: (scope: Scope) => T): T
272
279
export function startTransaction (
273
280
context : TransactionContext ,
274
281
customSamplingContext ?: CustomSamplingContext ,
282
+ // eslint-disable-next-line deprecation/deprecation
275
283
) : ReturnType < Hub [ 'startTransaction' ] > {
276
284
// eslint-disable-next-line deprecation/deprecation
277
285
return getCurrentHub ( ) . startTransaction ( { ...context } , customSamplingContext ) ;
0 commit comments