Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abtris/dagger-tutorial
Dagger tutorial with OTEL instrumentation
https://github.com/abtris/dagger-tutorial
Last synced: about 1 month ago
JSON representation
Dagger tutorial with OTEL instrumentation
- Host: GitHub
- URL: https://github.com/abtris/dagger-tutorial
- Owner: abtris
- Created: 2022-10-31T14:40:15.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-09-11T19:08:04.000Z (2 months ago)
- Last Synced: 2024-09-12T07:06:45.009Z (2 months ago)
- Language: Go
- Homepage:
- Size: 347 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# Dagger SDK
- https://docs.dagger.io/sdk/go/959738/get-started
- https://www.youtube.com/watch?v=GgMskf-znh4```
go get dagger.io/dagger@latest
``````
go build
./multibuild https://github.com/kpenfound/greetings-api.git
```## OTEL
### Install
```
brew tap CtrlSpice/homebrew-otel-desktop-viewer
brew tap equinix-labs/otel-cli
brew install otel-desktop-viewer otel-cli
```### Run basic trace
- 1st terminal
```
export OTEL_SERVICE_NAME="dagger"
export OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4318"
export OTEL_TRACES_EXPORTER="otlp"
export OTEL_EXPORTER_OTLP_PROTOCOL="http/protobuf"
otel-desktop-viewer
```- 2nd terminal
```
export OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318
otel-cli exec --service dagger --name "multibuild" ./multibuild https://github.com/kpenfound/greetings-api.git
```## Run manual instrumented
- 1st terminal
```
export OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4318"
export OTEL_TRACES_EXPORTER="otlp"
export OTEL_EXPORTER_OTLP_PROTOCOL="http/protobuf"
otel-desktop-viewer
```- 2nd terminal
```
export OTEL_SERVICE_NAME="dagger"
export OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318
go build
./multibuild https://github.com/kpenfound/greetings-api.git
```## Honeycomb
```
export OTEL_USE_HTTPS="true"
export OTEL_SERVICE_NAME="dagger"
export OTEL_EXPORTER_OTLP_ENDPOINT="https://api.honeycomb.io:443"
export OTEL_EXPORTER_OTLP_HEADERS="x-honeycomb-team=,x-honeycomb-dataset=dagger"
```Screenshot from otel-desktop-viewer
![](traces.png)