example

command module
v0.0.0-...-5231181 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: BSD-2-Clause Imports: 10 Imported by: 0

README

Example for graphql-go OpenTelemetry instrumentation

This example consists of a server that runs a GraphQL handler and a client that makes requests to the server. First, you should run the server and then run the client.

Server

You can run the server with different exporters by providing environment variables.

Stdout exporter (default):

go run server.go

Jaeger exporter:

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

Uptrace exporter:

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

Client

To run the client:

./make_calls.sh

Documentation

See otelgraphql for documentation.

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