Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 698 Bytes

File metadata and controls

30 lines (20 loc) · 698 Bytes

Using OTLP Metrics Exporter with Uptrace

This example demonstrates how to configure OpenTelemetry Ruby to export metrics to Uptrace.

Prerequisites

Before running this example, you need to create an Uptrace project to obtain your project DSN.

Installation

Install the required dependencies:

bundle install

Running the Example

Execute the example by setting your project DSN via the UPTRACE_DSN environment variable:

UPTRACE_DSN="https://<project_secret>@api.uptrace.dev?grpc=4317" ./main.rb

Replace <project_secret> with your actual project secret from your Uptrace project.