@@ -87,6 +87,7 @@ export function captureEvent(event: Event, hint?: EventHint): string {
8787 *
8888 * @deprecated Use getCurrentScope() directly.
8989 */
90+ // eslint-disable-next-line deprecation/deprecation
9091export function configureScope ( callback : ( scope : Scope ) => void ) : ReturnType < Hub [ 'configureScope' ] > {
9192 // eslint-disable-next-line deprecation/deprecation
9293 getCurrentHub ( ) . configureScope ( callback ) ;
@@ -100,6 +101,7 @@ export function configureScope(callback: (scope: Scope) => void): ReturnType<Hub
100101 *
101102 * @param breadcrumb The breadcrumb to record.
102103 */
104+ // eslint-disable-next-line deprecation/deprecation
103105export function addBreadcrumb ( breadcrumb : Breadcrumb , hint ?: BreadcrumbHint ) : ReturnType < Hub [ 'addBreadcrumb' ] > {
104106 // eslint-disable-next-line deprecation/deprecation
105107 getCurrentHub ( ) . addBreadcrumb ( breadcrumb , hint ) ;
@@ -110,7 +112,7 @@ export function addBreadcrumb(breadcrumb: Breadcrumb, hint?: BreadcrumbHint): Re
110112 * @param name of the context
111113 * @param context Any kind of data. This data will be normalized.
112114 */
113- // eslint-disable-next-line @typescript-eslint/no-explicit-any
115+ // eslint-disable-next-line @typescript-eslint/no-explicit-any, deprecation/deprecation
114116export function setContext ( name : string , context : { [ key : string ] : any } | null ) : ReturnType < Hub [ 'setContext' ] > {
115117 // eslint-disable-next-line deprecation/deprecation
116118 getCurrentHub ( ) . setContext ( name , context ) ;
@@ -120,6 +122,7 @@ export function setContext(name: string, context: { [key: string]: any } | null)
120122 * Set an object that will be merged sent as extra data with the event.
121123 * @param extras Extras object to merge into current context.
122124 */
125+ // eslint-disable-next-line deprecation/deprecation
123126export function setExtras ( extras : Extras ) : ReturnType < Hub [ 'setExtras' ] > {
124127 // eslint-disable-next-line deprecation/deprecation
125128 getCurrentHub ( ) . setExtras ( extras ) ;
@@ -130,6 +133,7 @@ export function setExtras(extras: Extras): ReturnType<Hub['setExtras']> {
130133 * @param key String of extra
131134 * @param extra Any kind of data. This data will be normalized.
132135 */
136+ // eslint-disable-next-line deprecation/deprecation
133137export function setExtra ( key : string , extra : Extra ) : ReturnType < Hub [ 'setExtra' ] > {
134138 // eslint-disable-next-line deprecation/deprecation
135139 getCurrentHub ( ) . setExtra ( key , extra ) ;
@@ -139,6 +143,7 @@ export function setExtra(key: string, extra: Extra): ReturnType<Hub['setExtra']>
139143 * Set an object that will be merged sent as tags data with the event.
140144 * @param tags Tags context object to merge into current context.
141145 */
146+ // eslint-disable-next-line deprecation/deprecation
142147export function setTags ( tags : { [ key : string ] : Primitive } ) : ReturnType < Hub [ 'setTags' ] > {
143148 // eslint-disable-next-line deprecation/deprecation
144149 getCurrentHub ( ) . setTags ( tags ) ;
@@ -152,6 +157,7 @@ export function setTags(tags: { [key: string]: Primitive }): ReturnType<Hub['set
152157 * @param key String key of tag
153158 * @param value Value of tag
154159 */
160+ // eslint-disable-next-line deprecation/deprecation
155161export function setTag ( key : string , value : Primitive ) : ReturnType < Hub [ 'setTag' ] > {
156162 // eslint-disable-next-line deprecation/deprecation
157163 getCurrentHub ( ) . setTag ( key , value ) ;
@@ -162,6 +168,7 @@ export function setTag(key: string, value: Primitive): ReturnType<Hub['setTag']>
162168 *
163169 * @param user User context object to be set in the current context. Pass `null` to unset the user.
164170 */
171+ // eslint-disable-next-line deprecation/deprecation
165172export function setUser ( user : User | null ) : ReturnType < Hub [ 'setUser' ] > {
166173 // eslint-disable-next-line deprecation/deprecation
167174 getCurrentHub ( ) . setUser ( user ) ;
@@ -272,6 +279,7 @@ export function withActiveSpan<T>(span: Span, callback: (scope: Scope) => T): T
272279export function startTransaction (
273280 context : TransactionContext ,
274281 customSamplingContext ?: CustomSamplingContext ,
282+ // eslint-disable-next-line deprecation/deprecation
275283) : ReturnType < Hub [ 'startTransaction' ] > {
276284 // eslint-disable-next-line deprecation/deprecation
277285 return getCurrentHub ( ) . startTransaction ( { ...context } , customSamplingContext ) ;
0 commit comments