This example demonstrates how to configure OpenTelemetry Ruby to export logs to Uptrace.
Before running this example, you need to create an Uptrace project to obtain your project DSN.
Install the required dependencies:
bundle installExecute the example by setting your project DSN via the UPTRACE_DSN environment variable:
UPTRACE_DSN="https://<project_secret>@api.uptrace.dev?grpc=4317" ./main.rbReplace <project_secret> with your actual project secret from your Uptrace project.