Coder Social home page Coder Social logo

naiduarvind / gha-honeymarker Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 5.0 688 KB

Add Honeycomb Markers to your GitHub Actions workflows.

License: MIT License

Dockerfile 67.35% Shell 32.65%
github-actions github-actions-docker honeycomb honeycombio observability

gha-honeymarker's Introduction

gha-honeymarker Action

release

This GitHub Action adds a marker from your deploy workflows using Honeycomb's marker tool. It annotates the timeline with a marker and optional metadata from the workflow and will always send a marker for the deploy, even if the deploy failed.

gha-honeymarker should be added after a deploy indicating a successful change or otherwise. Every job will create a separate marker.

โš ๏ธ Limitations:

  • Only works on Linux hosts.
  • If downloading honeymarker fails or if running honeymarker fails (i.e. a bug in honeymarker), the entire job will fail.

How to use it

Put the action in the beginning of your worflow:

- uses: naiduarvind/gha-honeymarker@main
  with:
    # Required: Honeycomb API key - needed to send markers.
    apikey: ${{ secrets.BUILDEVENTS_APIKEY }}

    # Required: The Honeycomb dataset to use.
    dataset: gha-honeymarker

    # Optional: The identifier for the marker.
    type: ${{ github.workflow }}

    # Optional: The message describing the marker.
    message: ${{ github.run-id }}-${{ job.status }} 


  # 'honeymarker add' should be placed after a deploy to indicate a change is successful or otherwise.

Inputs

Name Required Description Type Default
apikey yes API key used to communicate with the Honeycomb API. string
dataset yes Honeycomb dataset to use. string
type no Identifier for the marker (default = "workflow name"). string ${{ github.workflow }}
message no The message describing the marker (default = "job id-job status"). string ${{ github.run-id}}-${{ job.status }}

Outputs

No outputs are set as of now.

Example

This repository has its own workflow which will run every 15 minutes. See .github/workflows/integration.yaml.

This workflow will create the following marker in Honeycomb:

Marker created in Honeycomb

License

This Action is distributed under the terms of the MIT license, see LICENSE for details.

gha-honeymarker's People

Contributors

naiduarvind avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

gha-honeymarker's Issues

'go get' is no longer supported

When running the action there is an error
`+ install_binary

  • go get github.com/honeycombio/honeymarker
    golang.org/x/sys/unix
    /go/src/golang.org/x/sys/unix/syscall.go:83:7: undefined: unsafe.Slice
    /go/src/golang.org/x/sys/unix/syscall_unix.go:118:7: undefined: unsafe.Slice
    /go/src/golang.org/x/sys/unix/sysvshm_unix.go:33:7: undefined: unsafe.Slice`

after trying manually go get the error is clearer
go get github.com/honeycombio/honeymarker go: go.mod file not found in current directory or any parent directory. 'go get' is no longer supported outside a module. To build and install a command, use 'go install' with a version, like 'go install example.com/cmd@latest' For more information, see https://golang.org/doc/go-get-install-deprecation or run 'go help get' or 'go help install'.

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.