otelsdk

OpenTelemetry SDK for R packages and projects

lifecycle R-CMD-check Codecov test coverage

OpenTelemetry is an observability framework. OpenTelemetry is a collection of tools, APIs, and SDKs used to instrument, generate, collect, and export telemetry data such as metrics, logs, and traces, for analysis in order to understand your software’s performance and behavior.

For an introduction to OpenTelemetry, see the OpenTelemetry website docs.

To learn how to instrument your R code, see Getting Started in the otel package.

To learn how to collect telemetry data from an instrumented R package or project, see Collecting Telemetry Data.

For project status, installation instructions and more, read on.

Features

The otel and otelsdk R packages

Use the otel package as a dependency if you want to instrument your R package or project for OpenTelemetry.

Use the otelsdk package to produce OpenTelemetry output from an R package or project that was instrumented with the otel package.

Reference Documentation

Status

The current status of the major functional components for OpenTelemetry R is as follows:

Traces Metrics Logs
Development Development Development

Version support

otel and otelsdk support R 3.6.0 and higher on Unix and R 4.3.0 or higher on Windows.

Installation

You can install the otel from CRAN:

install.packages("otelsdk")

Compiling from source

To compile otelsdk from source, you need to install the protobuf library first:

Repositories

License

MIT © Posit, PBC