Skip to content

Commit 2b301a4

Browse files
authored
feat: enable Sentry OTLP export in smoke-otel-tracing (#6064)
Adds `observability.otlp` frontmatter to the smoke-otel-tracing workflow so the gh-aw framework injects OTel env vars into the mcpg container for live Sentry trace export. ## Changes - Added `observability.otlp` block with `GH_AW_OTEL_SENTRY_ENDPOINT` and `GH_AW_OTEL_SENTRY_AUTHORIZATION` secrets - Recompiled lock file ## Prerequisites - Repo secrets `GH_AW_OTEL_SENTRY_ENDPOINT` and `GH_AW_OTEL_SENTRY_AUTHORIZATION` must be set ✅ - mcpg v0.3.11+ with `OTEL_EXPORTER_OTLP_HEADERS` env var support (PR #5849)
2 parents f2686f5 + d6c959d commit 2b301a4

2 files changed

Lines changed: 61 additions & 21 deletions

File tree

.github/workflows/smoke-otel-tracing.lock.yml

Lines changed: 49 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/smoke-otel-tracing.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ permissions:
99
issues: read
1010
actions: read
1111

12+
observability:
13+
otlp:
14+
endpoint: ${{ secrets.GH_AW_OTEL_SENTRY_ENDPOINT }}
15+
headers: ${{ secrets.GH_AW_OTEL_SENTRY_AUTHORIZATION }}
16+
1217
engine:
1318
id: copilot
1419
strict: false
@@ -25,6 +30,10 @@ tools:
2530
runtimes:
2631
go:
2732
version: "1.25"
33+
sandbox:
34+
mcp:
35+
container: "ghcr.io/github/gh-aw-mcpg"
36+
version: "v0.3.11"
2837
steps:
2938
- name: Set up Go
3039
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6
@@ -54,8 +63,9 @@ This workflow validates that the MCP Gateway correctly handles OpenTelemetry tra
5463
all key scenarios: provider initialization, span export, parent trace context propagation,
5564
HTTP backend authentication, and graceful shutdown with span flush.
5665

57-
All tests run locally using Go unit tests and the compiled `awmg` binary — no external
58-
OTLP endpoint or Docker containers are required.
66+
Core validation still runs locally using Go unit tests and the compiled `awmg` binary.
67+
This workflow also exports traces to Sentry via `observability.otlp` when
68+
`GH_AW_OTEL_SENTRY_ENDPOINT` and `GH_AW_OTEL_SENTRY_AUTHORIZATION` are configured.
5969

6070
## Context
6171

0 commit comments

Comments
 (0)