Skip to content

Replace BetterStack with OTEL logging for LGTM stack#42

Merged
ItsRauf merged 20 commits intomainfrom
devel
Feb 13, 2026
Merged

Replace BetterStack with OTEL logging for LGTM stack#42
ItsRauf merged 20 commits intomainfrom
devel

Conversation

@ItsRauf
Copy link
Contributor

@ItsRauf ItsRauf commented Feb 13, 2026

OTEL Observability

Tracing (Tempo)

Logging (Loki)

  • Replaced BetterStack/Logtail with OTEL-native logging (39ec059..a1b05b2)
  • Bot uses EmbedlyLogger with BatchLogRecordProcessor → OTLP exporter (3146ad5, 0d7d04f, 49c02cf)
  • API logs to both console and Loki via raw OTLP HTTP with ctx.waitUntil() (34c6099)
  • Trace/span ID correlation for API logs in Tempo (a1b05b2)
  • Platform and source labels (message | command | context_menu) for Grafana indexing (8c899b6)

Other

  • Auto-delete bot embeds when original message is deleted (dff6d14)
  • Limit embed descriptions to 1500 chars (ec5fd6a)
  • Harden error handling and type safety in platforms/API (d7484b0)

ItsRauf and others added 20 commits January 22, 2026 16:55
refactored a bunch of the split code between parsing and types to localize it to platforms
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
discord has a limit of 4k and that was causing some posts to not embed
EmbedlyLogger implements Sapphire's logger interface for interop purposes as I overwrite the default logger
@ItsRauf ItsRauf self-assigned this Feb 13, 2026
@ItsRauf ItsRauf added the enhancement New feature or request label Feb 13, 2026
@changeset-bot
Copy link

changeset-bot bot commented Feb 13, 2026

🦋 Changeset detected

Latest commit: 6d1f453

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 6 packages
Name Type
@embedly/platforms Minor
@embedly/builder Minor
@embedly/logging Minor
@embedly/config Minor
@embedly/api Minor
@embedly/bot Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@ItsRauf ItsRauf merged commit 14aa4d0 into main Feb 13, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant