Skip to content

Commit

Permalink
run.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jmacd committed Oct 18, 2024
1 parent 3684834 commit 8413826
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
23 changes: 23 additions & 0 deletions examples/metrics/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/sh

# dev-jmacd in staging
# export LS_ACCESS_TOKEN=42f288975e1b8048d49ff5214d0359b2
# export LS_SERVICE_NAME=v10
# export OTEL_EXPORTER_OTLP_METRIC_TEMPORALITY_PREFERENCE=delta
# export OTEL_EXPORTER_OTLP_SPAN_ENDPOINT=ingest.staging.lightstep.com:443
# export OTEL_EXPORTER_OTLP_SPAN_INSECURE=false
# export OTEL_EXPORTER_OTLP_METRIC_ENDPOINT=ingest.staging.lightstep.com:443
# export OTEL_EXPORTER_OTLP_METRIC_INSECURE=false
# export OTEL_EXPORTER_OTLP_METRIC_PERIOD=10s

export LS_ACCESS_TOKEN=42f288975e1b8048d49ff5214d0359b2
export LS_SERVICE_NAME=hello

export OTEL_EXPORTER_OTLP_METRIC_TEMPORALITY_PREFERENCE=delta
export OTEL_EXPORTER_OTLP_SPAN_ENDPOINT=127.0.0.1:4317
export OTEL_EXPORTER_OTLP_SPAN_INSECURE=true
export OTEL_EXPORTER_OTLP_METRIC_ENDPOINT=127.0.0.1:4317
export OTEL_EXPORTER_OTLP_METRIC_INSECURE=true
export OTEL_EXPORTER_OTLP_METRIC_PERIOD=10s

go run .
5 changes: 5 additions & 0 deletions examples/tracing/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
OTEL_EXPORTER_OTLP_SPAN_ENDPOINT=127.0.0.1:4317 OTEL_EXPORTER_OTLP_SPAN_INSECURE=true LS_SERVICE_NAME=hello_world LS_ACCESS_TOKEN=1234 LS_METRICS_ENABLED=false go run trace.go

#OTEL_EXPORTER_OTLP_SPAN_ENDPOINT=spaningest.staging.lightstep.com:443 OTEL_EXPORTER_OTLP_SPAN_INSECURE=false LS_SERVICE_NAME=hello_world LS_ACCESS_TOKEN=42f288975e1b8048d49ff5214d0359b2 go run trace.go

#OTEL_EXPORTER_OTLP_SPAN_ENDPOINT=localhost:8360 OTEL_EXPORTER_OTLP_SPAN_INSECURE=true LS_SERVICE_NAME=hello_world LS_ACCESS_TOKEN=developer LS_METRICS_ENABLED=true go run trace.go

0 comments on commit 8413826

Please sign in to comment.