logologo
Docs
API
Docs
API
logologo
React Native Ottrelite

Classes

Class: DevSpanProcessorInterceptor
Class: OttreliteMeterProvider
Class: OttreliteTracerProvider
Class: OttreliteBackendPlatform
Class: OttreliteBackendTracy
Class: Ottrelite

Functions

Function: useTracer
Function: vanillaTracerFactory
Function: withTrace
Function: useComponentRenderTracing
Function: withComponentRenderTracing

Interfaces

Interface: OttreliteBackendInfo

Modules

Module: interop-otel/src
Module: @ottrelite/backend-platform
Module: @ottrelite/backend-wrapper-tracy
Module: @ottrelite/core

Types

Type alias: WithTraceProps
Type alias: OttreliteBackend
Type alias: StackTraceEntry
Type alias: TracingAPI
Abstract Logo

Need React or React Native expertise you can count on?

Let's talkLet's talk
Edit this page on GitHub
Previous PageClass: DevSpanProcessorInterceptor
Next PageClass: OttreliteTracerProvider
Need help with React or React Native projects?
We support teams building scalable apps with React and React Native.
Let's talkLet's talk

#Class: OttreliteMeterProvider

interop-otel/src.OttreliteMeterProvider

IMeterProvider implementation that pipes metrics data to Ottrelite's Development API.

#Hierarchy

  • MeterProvider

    ↳ OttreliteMeterProvider

#Implements

  • MeterProvider

#Table of contents

#Constructors

  • constructor

#Properties

  • _meterStates

#Methods

  • forceFlush
  • getMeter
  • hookIntoObservableInstrument
  • register
  • shutdown

#Constructors

#constructor

new OttreliteMeterProvider(options?)

#Parameters

NameType
options?MeterProviderOptions

#Inherited from

MeterProvider.constructor

#Properties

#_meterStates

Private _meterStates: Map<string, Meter>

#Methods

#forceFlush

forceFlush(options?): Promise<void>

Notifies all registered MetricReaders to flush any buffered data.

Returns a promise which is resolved when all flushes are complete.

#Parameters

NameType
options?CommonReaderOptions

#Returns

Promise<void>

#Inherited from

MeterProvider.forceFlush


#getMeter

getMeter(meterName, meterVersion?, meterOptions?): Meter

#Parameters

NameType
meterNamestring
meterVersion?string
meterOptions?MeterOptions

#Returns

Meter

#Implementation of

IMeterProvider.getMeter

#Overrides

MeterProvider.getMeter


#hookIntoObservableInstrument

Private hookIntoObservableInstrument(observableInstrument, «destructured»): void

#Parameters

NameType
observableInstrumentObservableCounter<Attributes> | ObservableGauge<Attributes> | ObservableUpDownCounter<Attributes>
«destructured»Object
› instrumentCategorystring
› meterIdstring
› namestring

#Returns

void


#register

register(): void

#Returns

void


#shutdown

shutdown(options?): Promise<void>

Shut down the MeterProvider and all registered MetricReaders.

Returns a promise which is resolved when all flushes are complete.

#Parameters

NameType
options?CommonReaderOptions

#Returns

Promise<void>

#Inherited from

MeterProvider.shutdown