https://github.com/signoz/go-grpc-stream-otel
https://github.com/signoz/go-grpc-stream-otel
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/signoz/go-grpc-stream-otel
- Owner: SigNoz
- Created: 2024-11-19T17:49:27.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-03-13T01:21:49.000Z (7 months ago)
- Last Synced: 2025-03-22T01:04:13.837Z (7 months ago)
- Language: Go
- Size: 12.7 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-grpc-stream-otel
Start go grpc server and grpc client using below commands
1. Grpc-Server
```
cd server
SERVICE_NAME=goAppServer OTEL_EXPORTER_OTLP_HEADERS=signoz-access-token=YOUR_SIGNOZ_INGESTION_TOKEN OTEL_EXPORTER_OTLP_ENDPOINT=YOUR_COLLECTOR_ENDPOINT go run main.go
```2. Grpc-Client
```
cd client
SERVICE_NAME=goAppClient OTEL_EXPORTER_OTLP_HEADERS=signoz-access-token=YOUR_SIGNOZ_INGESTION_TOKEN OTEL_EXPORTER_OTLP_ENDPOINT=YOUR_COLLECTOR_ENDPOINT go run main.go
```SigNoz Ingestion Token in only required for cloud users. Self hosted users only need to specify OTEL_EXPORTER_OTLP_ENDPOINT and SERVICE_NAME.