Preparing search index...
The search index is not available
@vercel/otel
@vercel/otel
FetchInstrumentation
Class FetchInstrumentation
Implements
Instrumentation
Index
Constructors
constructor
Properties
config
instrumentation
Name
instrumentation
Version
original
Fetch
tracer
Provider
Methods
disable
enable
get
Config
instrument
Fetch
instrument
Http
set
Config
set
Meter
Provider
set
Tracer
Provider
should
Ignore
should
Propagate
start
Span
Constructors
constructor
new
Fetch
Instrumentation
(
config
?
)
:
FetchInstrumentation
Parameters
config
:
FetchInstrumentationConfig
= {}
Returns
FetchInstrumentation
Properties
Private
Internal
config
config
:
FetchInstrumentationConfig
instrumentation
Name
instrumentation
Name
:
string
= "@vercel/otel/fetch"
instrumentation
Version
instrumentation
Version
:
string
= "1.0.0"
Private
Internal
original
Fetch
original
Fetch
:
undefined
|
(
(
input
,
init
?
)
=>
Promise
<
Response
>
)
Type declaration
(
input
,
init
?
)
:
Promise
<
Response
>
Parameters
input
:
URL
|
RequestInfo
Optional
init
:
RequestInit
Returns
Promise
<
Response
>
Private
Internal
tracer
Provider
tracer
Provider
:
undefined
|
TracerProvider
Methods
disable
disable
(
)
:
void
Returns
void
enable
enable
(
)
:
void
Returns
void
get
Config
get
Config
(
)
:
FetchInstrumentationConfig
Returns
FetchInstrumentationConfig
instrument
Fetch
instrument
Fetch
(
)
:
void
Returns
void
instrument
Http
instrument
Http
(
httpModule
,
protocolFromModule
)
:
void
Parameters
httpModule
:
__module
|
__module
protocolFromModule
:
"https:"
|
"http:"
Returns
void
set
Config
set
Config
(
)
:
void
Returns
void
set
Meter
Provider
set
Meter
Provider
(
)
:
void
Returns
void
set
Tracer
Provider
set
Tracer
Provider
(
tracerProvider
)
:
void
Parameters
tracerProvider
:
TracerProvider
Returns
void
Private
should
Ignore
should
Ignore
(
url
,
init
?
)
:
boolean
Parameters
url
:
URL
Optional
init
:
InternalRequestInit
Returns
boolean
Private
should
Propagate
should
Propagate
(
url
,
init
?
)
:
boolean
Parameters
url
:
URL
Optional
init
:
InternalRequestInit
Returns
boolean
Private
start
Span
start
Span
(
__namedParameters
)
:
Span
Parameters
__namedParameters
:
{
attributes
?:
Attributes
;
fetchType
:
"http"
|
"fetch"
;
method
?:
string
;
name
?:
string
;
tracer
:
Tracer
;
url
:
URL
;
}
Optional
attributes
?:
Attributes
fetch
Type
:
"http"
|
"fetch"
Optional
method
?:
string
Optional
name
?:
string
tracer
:
Tracer
url
:
URL
Returns
Span
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
config
instrumentation
Name
instrumentation
Version
original
Fetch
tracer
Provider
disable
enable
get
Config
instrument
Fetch
instrument
Http
set
Config
set
Meter
Provider
set
Tracer
Provider
should
Ignore
should
Propagate
start
Span
@vercel/otel
FetchInstrumentation
OTLPHttpJsonTraceExporter
OTLPHttpProtoTraceExporter
Configuration
FetchInstrumentationConfig
InstrumentationConfiguration
OTLPExporterConfig
AttributesFromHeaderFunc
AttributesFromHeaders
InstrumentationOptionOrName
PropagatorOrName
SampleOrName
SpanExporterOrName
SpanProcessorOrName
registerOTel