Takaro - v0.6.0
Preparing search index...
@takaro/util
Sentry
generateInstrumentOnce
Function generateInstrumentOnce
generateInstrumentOnce
<
Options
,
InstrumentationClass
extends
new
(
...
args
:
any
[]
)
=>
Instrumentation
,
>
(
name
:
string
,
instrumentationClass
:
InstrumentationClass
,
optionsCallback
:
(
options
:
Options
,
)
=>
ConstructorParameters
<
InstrumentationClass
>
[
0
]
,
)
:
(
options
:
Options
)
=>
InstanceType
<
InstrumentationClass
>
&
{
id
:
string
}
Type Parameters
Options
InstrumentationClass
extends
new
(
...
args
:
any
[]
)
=>
Instrumentation
Parameters
name
:
string
instrumentationClass
:
InstrumentationClass
optionsCallback
:
(
options
:
Options
)
=>
ConstructorParameters
<
InstrumentationClass
>
[
0
]
Returns
(
options
:
Options
)
=>
InstanceType
<
InstrumentationClass
>
&
{
id
:
string
}
generateInstrumentOnce
<
Options
=
unknown
,
InstrumentationInstance
extends
Instrumentation
<
InstrumentationConfig
>
=
Instrumentation
<
InstrumentationConfig
,
>
,
>
(
name
:
string
,
creator
:
(
options
?:
Options
)
=>
InstrumentationInstance
,
)
:
(
options
?:
Options
)
=>
InstrumentationInstance
&
{
id
:
string
}
Type Parameters
Options
=
unknown
InstrumentationInstance
extends
Instrumentation
<
InstrumentationConfig
>
=
Instrumentation
<
InstrumentationConfig
>
Parameters
name
:
string
creator
:
(
options
?:
Options
)
=>
InstrumentationInstance
Returns
(
options
?:
Options
)
=>
InstrumentationInstance
&
{
id
:
string
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Takaro - v0.6.0
Loading...