The Simplest Way to Make Lightstep and Teamcity Work Like They Should
Integrating lightstep and teamcity links your build steps to live system trace data. Teams use this setup to spot slow builds and track code deploys right away. TeamCity runs your tests, builds your apps, and pushes new code to your servers. Lightstep watches those apps and shows where requests slow down or fail in production. When you link both tools, every code change leaves a clear mark on your charts. Engineers see right away if a new build caused a jump in error rates. You do not have to g
Your coding agents run with your access.
Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.
Integrating lightstep and teamcity links your build steps to live system trace data. Teams use this setup to spot slow builds and track code deploys right away.
TeamCity runs your tests, builds your apps, and pushes new code to your servers. Lightstep watches those apps and shows where requests slow down or fail in production. When you link both tools, every code change leaves a clear mark on your charts. Engineers see right away if a new build caused a jump in error rates. You do not have to guess which commit broke a backend service during a deploy.
How data and keys flow between lightstep and teamcity
TeamCity needs an API key to send build events and trace spans to Lightstep. You store this secret key inside the project settings of your build server. When a build job runs, the agent reads the key and sends out telemetry data. This data includes the build number, the branch name, and the time each step took. Lightstep takes this input and draws markers on your service health graphs for the team.
Permissions play a big role in keeping this data pipeline safe and working well. The key you use in TeamCity should only have write rights for trace and marker data. It does not need rights to delete dashboards or change user roles in the monitoring tool. On the TeamCity side, only admin roles should view or edit the stored secret key. Build agents read the key during a run and scrub it from the text logs.
Fixing common failure modes and wide permissions
Many teams make the mistake of sharing one broad admin token across every build project. If one test pipeline leaks that token in a log, an attacker gets wide access. Another common issue happens when build agents send raw test payloads inside trace tags. Those payloads might hold test emails, phone numbers, or card numbers from staging databases. Unlogged changes to build scripts also make it hard to see who changed the telemetry rules.
You can fix these risks by scoping down roles and network paths on both sides. Create a separate ingest token for each team or project inside your trace tool. Give each token the smallest role possible so it can only write build markers. Set up your network rules so only known build agents can reach the ingest endpoint. Check your build scripts often and make sure data masking rewrites matched fields in results.
End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Keeping build pipelines fast and audit ready
Sending trace data from a build agent should not slow down your release jobs. If the network call to the trace tool fails, the build should still finish its work. Set a short timeout on the script step that sends the deploy marker out. This rule keeps your pipeline moving even when external monitoring services have a brief outage.
Good audit logs help you track how your build agents talk to outside tools. Keep a clear record of every time an admin rotates an API key in TeamCity. Review your project settings every few months to remove old keys that teams no longer use. Clear ownership and tight roles make your build and trace setup easy to run.
Add runtime guardrails and masking beside your databases and APIs
Login rules, role grants, and CI checks govern who connects to your stack. Yet any allowed script, engineer, or AI agent still runs commands with the full scope of its role. For workloads on Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes, SSH, or internal HTTP services, hoop.dev sits beside the service as an open-source proxy, a sidecar for your database or API.
Before a query runs, hoop.dev guardrails check the statement against your rules. An AI Analyzer you configure can score intent or hold risky calls for human review. Next, hoop.dev data masking rewrites sensitive fields in responses, and each verdict is logged per listener. Explore the MIT-licensed project on GitHub.
Frequently asked questions
Why do my TeamCity build markers not show up in Lightstep?
Check that your build agent can reach the external ingest network endpoint without firewall blocks. Also verify that your API token has not expired or lost its write permissions.
Should I use the same API key for all TeamCity projects?
No, you should create a unique key for each project or team in your setup. Separate keys let you rotate secrets or block one project without breaking other builds.
How do I stop sensitive test data from entering build traces?
Keep raw database outputs out of your trace tags when a test step fails. Use masking rules so the system rewrites emails, phone numbers, or card numbers in results.
Related guides
In this post