Skip to content

Commit

Permalink
Release v1.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
corentinmusard committed May 4, 2024
1 parent 6f40535 commit 518d191
Show file tree
Hide file tree
Showing 12 changed files with 43 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/axiom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Export workflow to Axiom
uses: ./
uses: corentinmusard/otel-cicd-action@v1
with:
otlpEndpoint: https://api.axiom.co/v1/traces
# Example value for AXIOM_OTLP_HEADERS:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
path: "junit.xml"
type: "junit"
githubToken: ${{ secrets.GITHUB_TOKEN }}
otel-export-traces:
otel-cicd-actions:
needs: [tests, build]
if: always()
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/honeycomb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Export workflow to Honeycomb
uses: ./
uses: corentinmusard/otel-cicd-action@v1
with:
otlpEndpoint: grpc://api.honeycomb.io:443/
# Example value for HONEYCOMB_OTLP_HEADERS:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/newrelic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Export workflow to New Relic
uses: ./
uses: corentinmusard/otel-cicd-action@v1
with:
otlpEndpoint: grpc://otlp.eu01.nr-data.net
# Example value for NEWRELIC_OTLP_HEADERS:
Expand Down
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1,18 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [1.9.0] - 2024-05-04

### Added

- Support for `https` endpoints (proto over http).
- Update to node 20.x

[unreleased]: https://github.com/corentinmusard/otel-cicd-action/compare/v1.9.0...HEAD
[1.9.0]: https://github.com/corentinmusard/otel-cicd-action/releases/tag/v1.9.0
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
[![Unit Tests][ci-img]][ci]
![GitHub License][license-img]

This action export GitHub Workflow data to any endpoint compatible with OpenTelemetry.
This action exports Github CI/CD workflows to any endpoint compatible with OpenTelemetry.

This is a fork of [otel-export-trace-action](https://github.com/inception-health/otel-export-trace-action) with the goal of maintaining the action and adding more features.
This is a fork of [otel-export-trace-action](hhttps://github.com/inception-health/otel-export-trace-action) with more features and better support.

![Example](./docs/honeycomb-example.png)

## Usage

We provide sample code for popular platforms. If you feel one is missing feel free to open an issue.
We provide sample code for popular platforms. If you feel one is missing, please open an issue.

| Code Sample | File |
| --------------------------- | ------------------------------------------------------------------------------------------------------------- |
Expand All @@ -33,7 +33,7 @@ on:
types: [completed]

jobs:
otel-export-traces:
otel-cicd-actions:
runs-on: ubuntu-latest
steps:
- uses: corentinmusard/otel-cicd-action@v1
Expand All @@ -50,7 +50,7 @@ jobs:
jobs:
build:
# ... existing code
otel-export-trace:
otel-cicd-action:
if: always()
name: OpenTelemetry Export Trace
runs-on: ubuntu-latest
Expand Down Expand Up @@ -120,7 +120,7 @@ jobs:
githubToken: ${{ secrets.GITHUB_TOKEN }}
```

**otel-export-trace.yml**
**otel-cicd.yml**

```yaml
name: OpenTelemetry Export Traces
Expand All @@ -131,11 +131,11 @@ on:
types: [completed]
jobs:
otel-export-trace:
otel-cicd-action:
runs-on: ubuntu-latest
steps:
- name: Export Workflow Traces
uses: inception-health/otel-export-trace-action@latest
uses: corentinmusard/otel-cicd-action@v1
with:
otlpEndpoint: grpc://api.honeycomb.io:443/
otlpHeaders: ${{ secrets.OTLP_HEADERS }}
Expand Down
10 changes: 5 additions & 5 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: OpenTelemetry Export Trace
description: Exports Workflow Run Telemetry Trace over OLTP
author: Inception Health
name: Open Telemetry CI/CD Action
description: Export CI/CD workflows to any endpoint compatible with OpenTelemetry
author: Corentin Musard

runs:
using: node20
Expand Down Expand Up @@ -28,5 +28,5 @@ outputs:
description: The OpenTelemetry Trace ID for this Trace

branding:
icon: activity
color: blue
icon: bar-chart-2
color: green
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ const core = __importStar(__nccwpck_require__(42186));
const step_1 = __nccwpck_require__(59431);
async function traceWorkflowRunJobs({ provider, workflowRunJobs, }) {
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
const tracer = provider.getTracer("otel-export-trace");
const tracer = provider.getTracer("otel-cicd-action");
const startTime = new Date(workflowRunJobs.workflowRun.run_started_at ||
workflowRunJobs.workflowRun.created_at);
let headRef = undefined;
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"private": true,
"name": "otel-export-trace",
"version": "1.8.0",
"description": "Github Action to export Open Telemetry traces for Workflow runs",
"name": "otel-cicd-action",
"version": "1.9.0",
"description": "Github Action that export CI/CD workflows to any endpoint compatible with OpenTelemetry",
"main": "lib/index.js",
"scripts": {
"prepare": "husky install",
Expand All @@ -18,7 +18,7 @@
"test:ci": "cross-env NODE_ENV=test jest --collect-coverage -ci"
},
"keywords": [],
"author": "",
"author": "Corentin Musard <[email protected]>",
"license": "MIT",
"dependencies": {
"@actions/artifact": "^0.6.1",
Expand Down
2 changes: 1 addition & 1 deletion src/tracing/job.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export async function traceWorkflowRunJobs({
provider,
workflowRunJobs,
}: TraceWorkflowRunJobsParams): Promise<SpanContext> {
const tracer = provider.getTracer("otel-export-trace");
const tracer = provider.getTracer("otel-cicd-action");

const startTime = new Date(
workflowRunJobs.workflowRun.run_started_at ||
Expand Down

0 comments on commit 518d191

Please sign in to comment.