example

command module
v0.0.0-...-88b6af5 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

README

gqlgen Instrumentation Example

Create an example span from gqlgen. These instructions expect you have docker-compose installed.

Bring up the gqlgen-server service and example gqlgen-client service to send an example request:

docker-compose up --detach gqlgen-server gqlgen-client

The gqlgen-client service sends just one request and exit. Retrieve the response generated by the gqlgen-server service; should be the last line in the logs:

docker-compose logs --tail=1 gqlgen-client

The gqlgen-server using stdout exporter for opentelemetry, so we can see TraceID in logs:

docker-compose logs gqlgen-server | grep 'TraceID' | head -1

Shut down the services when you are finished with the example:

docker-compose down

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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