Skip to content

Latest commit

 

History

History

example

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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