mongo-driver

command module
v0.0.0-...-31fd20c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2024 License: BSD-2-Clause Imports: 10 Imported by: 0

README

mongo-driver example for OpenTelemetry

PkgGoDev

To run this example you need a MongoDB server. You can start one with Docker:

docker-compose up -d

You can run this example with different exporters by providing environment variables.

Stdout exporter (default):

go run .

Jaeger exporter:

OTEL_EXPORTER_JAEGER_ENDPOINT=http://localhost:14268/api/traces go run .

Uptrace exporter:

UPTRACE_DSN="https://<token>@uptrace.dev/<project_id>" go run .

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL