command
Version:
v0.1.5
Opens a new window with list of versions in this module.
Published: May 5, 2025
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
GoVisual OpenTelemetry Example
This example demonstrates GoVisual integration with OpenTelemetry.
Prerequisites
- Docker and Docker Compose for running Jaeger
Setup
- Start Jaeger:
docker-compose up -d
- Run the example:
go run main.go
This will start a server on port 8080 with OpenTelemetry instrumentation enabled.
Endpoints
/ - Home page with links to API endpoints
/api/users - Returns user data with nested spans
/api/search?q=test - Search endpoint with query parameter as a span attribute
/api/health - Health check endpoint (not traced due to ignore path)
Accessing the Dashboards
Features Demonstrated
- GoVisual integration with OpenTelemetry
- Creating custom spans and nested spans
- Adding attributes to spans
- Path-based span filtering
- Viewing traces in Jaeger
- Correlating requests between GoVisual and Jaeger
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.