Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/otelPublic

R API for OpenTelemetry

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
NotificationsYou must be signed in to change notification settings

r-lib/otel

Repository files navigation

OpenTelemetry API for R packages and projects

lifecycleR-CMD-checkR-CMD-checkCodecov test coverage

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

For an introduction to OpenTelemetry, see theOpenTelemetry websitedocs.

To learn how to instrument your R code, seeGettingStarted. Forproject status, installation instructions and more, read on.

Features

  • Lightweight packages. otel is a small R package without dependenciesand compiled code. otelsdk needs a C++11 compiler and otel.
  • Minimal performance impact when tracing is disabled. otel functions donot evaluate their arguments in this case.
  • Zero-code instrumentation support. Add tracing to (some) functions ofselected packages automatically.
  • Configuration via environment variables.
  • Minimal extra code. Add tracing to a function with a single extrafunction call.
  • Production mode: otel functions do not crash your production app inproduction mode.
  • Development mode: otel functions error early in development mode.

Getting started

Setotel_tracer_name to the desired tracer name. (See?otel_tracer_name.) Then addotel::start_local_active_span() callsto the functions you want to trace:

otel_tracer_name<-"<package-id>"fn<-function(...) {spn<-otel::start_local_active_span("fn")...}

SeeGettingStarted fordetails.

The otel and otelsdk R packages

Use theotel package as a dependency ifyou want to instrument your R package or project for OpenTelemetry.

Use theotelsdk package to produceOpenTelemetry output from an R package or project that was instrumentedwith the otel package.

Reference Documentation

Status

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

TracesMetricsLogs
DevelopmentDevelopmentDevelopment

Version support

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

Installation

Install otel from CRAN:

# install.packages("pak")pak::pak("otel")

You can install the development version of otel fromGitHub with:

# install.packages("pak")pak::pak("r-lib/otel")

Repositories

License

MIT © Posit, PBC

About

R API for OpenTelemetry

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp