Repository navigation
feat(infra): export Worker telemetry to Maple via @maple-dev/alchemy - #328
Merged
Merged
Conversation
The stack merges Maple.providers() when MAPLE_API_KEY is set and reads the org's ingest keys (Maple.IngestKeys). The api, electric-proxy and bot-gateway Workers provide Maple.Telemetry on their init, which binds the private ingest key as a Worker secret, so no ingest key is copied into CI or Infisical. Traces now reach Maple through the SDK, so the Cloudflare `maple-traces` destination is dropped on those three Workers; `maple-logs` stays for invocation and crash logs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configuration
⛔ Files ignored due to path filters (1)
📒 Files selected for processing (10)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Coverage Report
File CoverageNo changed files found. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@maple-dev/alchemy@0.2.0and a shared helper,@hazel/infra/maple, which providesMapleIngest,hazelTelemetry(serviceName)andisMapleDeploy().alchemy.run.tsmergesMaple.providers()whenMAPLE_API_KEYis set and it's notalchemy dev.api,electric-proxyandbot-gatewayWorkers provideMaple.Telemetryon init. The deploy binds the org's private ingest key as a Worker secret, soMAPLE_INGEST_KEY/OTEL_BASE_URLare no longer passed in.telemetryEnvnow setsMAPLE_ENVIRONMENT. bot-gateway now usestelemetryEnv.maple-tracesdestination is dropped on those three Workers to avoid duplicate traces.maple-logsstays.deploy-prd.ymlpassesMAPLE_API_KEY.infra/README.mdis updated.Testing
bun run alchemy:typecheckpasses, andtscpasses for infra, backend, electric-proxy and bot-gateway.bun run alchemy:plan:prd:local(with Infisical'sMAPLE_API_KEY):ingestis adopted, and api, electric-proxy and bot-gateway are updated with the newMAPLE_ENVIRONMENTvar.MAPLE_API_KEY, the plan is unchanged apart from the new env vars; the SDK is a no-op.Before merging
MAPLE_API_KEYto the GitHubproductionenvironment secrets, or CI deploys run without Worker telemetry.🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by CodeRabbit