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 PageFunction: useComponentRenderTracing
Next PageInterface: OttreliteBackendInfo
Need help with React or React Native projects?
We support teams building scalable apps with React and React Native.
Let's talkLet's talk

#Function: withComponentRenderTracing

@ottrelite/core.withComponentRenderTracing

withComponentRenderTracing<P>(eventName, api?, WrappedComponent): NamedExoticComponent<P>

High-Order Component that wraps @seeuseComponentRenderTracing hook. For details, please consult the hook's documentation.

#Type parameters

NameType
Pextends IntrinsicAttributes

#Parameters

NameTypeDefault valueDescription
eventNamestringundefinedThe name of the event to trace.
apiTracingAPI'dev'The API to use for tracing (default is 'dev').
WrappedComponentComponentType<P>undefined-

#Returns

NamedExoticComponent<P>

An object containing the markJSRenderEnd function.