Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 87
feat(dev): collect local OTEL traces in project dev#1980
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
70e299b9b90471b34bd048cabff710be0a6File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Uh oh!
There was an error while loading. Please reload this page.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,11 @@ | ||
| # Environment variables for local development. | ||
| # `agentcore project dev` loads this file into your agent's process. Values here | ||
| # override injected values except PORT, FASTMCP_PORT, and LOCAL_DEV, which the | ||
| # CLI owns. This file is gitignored — keep secrets out of version control. | ||
| # CLI owns. While trace collection is on (the default), the CLI also owns the | ||
| # OTEL_* and AGENT_OBSERVABILITY_ENABLED variables so traces reach its local | ||
| # collector — pass --no-traces (or set instrumentation.enableOtel to false in | ||
| # agentcore.json) to disable collection and set your own. | ||
| # This file is gitignored — keep secrets out of version control. | ||
| # | ||
| # Example: | ||
| # MY_API_KEY=... |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -183,6 +183,11 @@ export class ContainerDevRunner implements DevRunner { | ||
| containerName, | ||
| "-p", | ||
| `127.0.0.1:${input.port}:${containerPort}`, | ||
| // Docker Engine on Linux does not define host.docker.internal (Desktop, | ||
| // Podman, and Finch do); the mapping makes the OTLP endpoint rewrite | ||
| // resolve everywhere and is harmless where the name already exists. | ||
| "--add-host", | ||
tejaskash marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| "host.docker.internal:host-gateway", | ||
tejaskash marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| ...awsMount, | ||
| "--env-file", | ||
| envFile, | ||
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.