In this step, you need to create a pipeline in Codefresh to deploy your app. Before you deploy, you need to add your Lightstep access token as an environment variable. The access token allows the app to send telemetry data to your Lightstep project. Once Codefresh is configured, you’ll first deploy a baseline service to your app, let it run for a bit, and then deploy a new version of the service that introduces some latency.

This configuration assumes you are using Lightstep’s Public Satellites.

If you’re using the sample app, it includes a Helm chart to use with Codefresh. It also assumes you have Codefresh configured to use Kubernetes clusters and to publish a Docker image to a Docker hub.

Here’s a tutorial with more information about setting up a basic Codefresh pipeline.

  1. Add your Lightstep access token as the value for the ${{LS_KEY}} environment variable. The access token allows the tracers to communicate directly with your Lightstep project.

    If you’re using the sample app, in the codefresh.yml file, in the DeployMyChart step, add your access token as the value for ${{LS_KEY}}.

  2. Deploy the baseline service.
    For the sample app, the service is in the /src/fast directory.

  3. Visit the app in your browser and let it run for a few minutes to create baseline data.

  4. Deploy the regression service.
    For the sample app, the service is in the /src/slow directory.

  5. Revisit the app in the browser and let it run for a few minutes to create regression data.


What Did We Learn?

  • Setting your access token as an environment variable allows the tracers to communicate with your Lightstep project.