• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Logflare / logflare / 14a983fce550d5503aa0f84f5da609a1619641ac-PR-3595
81%
main: 81%

Build:
Build:
LAST BUILD BRANCH: davidwhittington/o11y-2023-emit-git-commit-sha-in-logflare-telemetry-resource
DEFAULT BRANCH: main
Ran 15 Jun 2026 05:48PM UTC
Jobs 1
Files 484
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

15 Jun 2026 05:32PM UTC coverage: 81.145% (+0.006%) from 81.139%
14a983fce550d5503aa0f84f5da609a1619641ac-PR-3595

Pull #3595

github

djwhitt
feat(telemetry): emit build commit SHA as OTel resource attribute

Surface the build's git commit SHA as a `service.commit` OTel resource
attribute so it lands in BigQuery as `resource._service_commit`. The
`VERSION`-derived `service.version` is bumped only at release time, so it
can't identify which commit the continuously-deployed staging `main`
cluster is running; the SHA gives per-build identity there.

- lib/telemetry.ex: add `commit: System.get_env("LOGFLARE_COMMIT_SHA")` to
  the metrics exporter resource. Unset -> `nil` -> serialized as "" (the
  exporter's is_atom clause), no crash.
- Dockerfile: ARG COMMIT_SHA -> ENV LOGFLARE_COMMIT_SHA in the runner stage.
- docker-ci: pass the already-computed short_sha as the COMMIT_SHA build-arg.

Cloud Build's secret_setup.Dockerfile is FROM the app image and inherits the
ENV; versioned/prod images are retags of the same dev image, so the SHA
propagates to all clusters without Cloud Build changes.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Pull Request #3595: feat(telemetry): emit build commit SHA as OTel resource attribute

0 of 1 new or added line in 1 file covered. (0.0%)

13165 of 16224 relevant lines covered (81.15%)

3855.91 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
53.16
1.27% lib/telemetry.ex
Jobs
ID Job ID Ran Files Coverage
1 14a983fce550d5503aa0f84f5da609a1619641ac-PR-3595.1 15 Jun 2026 05:48PM UTC 484
81.15
GitHub Action Run
Source Files on build 14a983fce550d5503aa0f84f5da609a1619641ac-PR-3595
  • Tree
  • List 484
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #3595
  • PR Base - main (#2CAB2DA2...)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc