Giter Site home page Giter Site logo

helm-trace's Introduction

Helm Plugin to Generate OpenTelemetry Traces

Artifact Hub

Helm Plugin to generate OpenTelemetry traces for helm commands.

helm trace <Your Standard helm Command>

helm trace install

YouTube: Helm Trace Code Walkthrough

Watch on YouTube

helm trace plugin on YouTube

Prerequisites

  • Currently only supports Linux and MacOS
  • You must have a standalone binary of tracepusher in your path (ie. you are able to run tracepusher from the command line and see output)
  • You must have an OpenTelemetry collector somewhere so the spans can be sent there

Install Plugin

helm plugin install https://github.com/agardnerit/helm-trace

Use the Plugin

  1. Ensure you have an OpenTelemetry Collector available
  2. Add the word trace after helm in your standard command. For example helm version becomes helm trace version

Defaults and Configuration

The plugin assumes the following:

  • The OTEL collector URL defaults to http://localhost:4318
  • The span service name defaults to helm

Use environment variable: HT_OTELCOL_ENDPOINT to specify your collector endpoint

Use environment variable: HT_SERVICE_NAME to specify a different service name

export HT_OTEL_ENDPOINT=http://otelcol.somewhere.com:4318
export HT_OTEL_ENDPOINT=helm-dev
helm trace install ...

Remove Plugin

helm plugin remove trace

helm-trace's People

Contributors

agardnerit avatar viktoriussuwandi avatar

Stargazers

Jaco Becker avatar Milijan Bogdanovic avatar Abhishek Gupta avatar  avatar

Watchers

 avatar

helm-trace's Issues

Simplify time calculation logic

In 0.1.0 the time logic is a little redundant. We use time_start=0 and thus duration is always "some value minus 0" which can be simplified just be saying duration=$SECONDS.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.