Preparing search index...
The search index is not available
OpenTelemetry SDK
OpenTelemetry SDK
@opentelemetry/sdk-node
@opentelemetry/api
Histogram
Interface Histogram<AttributesTypes>
Since
1.3.0
interface
Histogram
<
AttributesTypes
extends
@opentelemetry/api
.
MetricAttributes
=
@opentelemetry/api
.
MetricAttributes
,
>
{
record
(
value
:
number
,
attributes
?:
AttributesTypes
,
context
?:
@opentelemetry/api
.
Context
,
)
:
void
;
}
Type Parameters
AttributesTypes
extends
@opentelemetry/api
.
MetricAttributes
=
@opentelemetry/api
.
MetricAttributes
Index
Methods
record
Methods
record
record
(
value
:
number
,
attributes
?:
AttributesTypes
,
context
?:
@opentelemetry/api
.
Context
,
)
:
void
Records a measurement. Value of the measurement must not be negative.
Parameters
value
:
number
Optional
attributes
:
AttributesTypes
Optional
context
:
@opentelemetry/api
.
Context
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
record
OpenTelemetry SDK
Loading...
Since
1.3.0