Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/axiom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
otel-export-axiom:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Export workflow to Axiom
uses: corentinmusard/otel-cicd-action@v2
uses: corentinmusard/otel-cicd-action@v4
with:
otlpEndpoint: https://api.axiom.co/v1/traces
# Example value for AXIOM_OTLP_HEADERS:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version-file: package.json
cache: npm
Expand All @@ -30,8 +30,8 @@ jobs:
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version-file: package.json
cache: npm
Expand All @@ -44,7 +44,7 @@ jobs:
if: always()
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Export workflow
uses: ./
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dash0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
otel-export-dash0:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Export workflow to Dash0
uses: corentinmusard/otel-cicd-action@v2
uses: corentinmusard/otel-cicd-action@v4
with:
otlpEndpoint: grpc://ingress.eu-west-1.aws.dash0.com:4317
# See https://www.dash0.com/documentation/dash0/get-started/sending-data-to-dash0
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/honeycomb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
otel-export-honeycomb:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Export workflow to Honeycomb
uses: corentinmusard/otel-cicd-action@v2
uses: corentinmusard/otel-cicd-action@v4
with:
otlpEndpoint: grpc://api.honeycomb.io:443/
# Example value for HONEYCOMB_OTLP_HEADERS:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/newrelic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
otel-export-newrelic:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Export workflow to New Relic
uses: corentinmusard/otel-cicd-action@v2
uses: corentinmusard/otel-cicd-action@v4
with:
otlpEndpoint: grpc://otlp.eu01.nr-data.net
# Example value for NEWRELIC_OTLP_HEADERS:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/private.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:
pull-requests: read # Optional. To read PR labels
checks: read # Optional. To read run annotations
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Export workflow
uses: corentinmusard/otel-cicd-action@v2
uses: corentinmusard/otel-cicd-action@v4
with:
otlpEndpoint: "CHANGE_ME"
otlpHeaders: "CHANGE_ME"
Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"files.insertFinalNewline": true,
"emmet.showExpandedAbbreviation": "never",
"editor.codeActionsOnSave": {
"quickfix.biome": "explicit",
"source.fixAll.biome": "explicit",
"source.organizeImports.biome": "explicit"
},
"[typescript]": {
Expand Down
42 changes: 41 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,43 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [4.0.0] - 2026-02-07

### ⚠ BREAKING CHANGES

Upgraded action from node20 to node24.

> Make sure your runner is on version v2.327.1 or later to ensure compatibility with this release. [See Release Notes](https://github.com/actions/runner/releases/tag/v2.327.1)

## [3.0.0] - 2026-01-30

### ⚠ BREAKING CHANGES

- Upgraded OpenTelemetry JS SDK to [v2](https://github.com/open-telemetry/opentelemetry-js/blob/main/doc/upgrade-to-2.x.md)
- The parentSpanId field on the Span and ReadableSpan interfaces was replaced by parentSpanContext, to adhere to the OTel spec: `span.parentSpanId` -> `span.parentSpanContext?.spanId`

### Added

Added missing [semconv attributes](https://opentelemetry.io/docs/specs/semconv/registry/attributes/cicd/):

- `cicd.pipeline.action.name`
- `cicd.pipeline.task.run.url.full`
- `cicd.pipeline.result`
- `cicd.pipeline.run.state`
- `cicd.pipeline.task.run.result`
- `cicd.worker.id`
- `cicd.worker.name`

### Fixed

- Updated dependencies

## [2.2.4] - 2025-08-07

### Fixed

- Include cancelled steps in trace

## [2.2.3] - 2025-01-30

### Fixed
Expand Down Expand Up @@ -174,7 +211,10 @@ permissions:
- Support for `https` endpoints (proto over http).
- Update to node 20.x

[unreleased]: https://github.com/corentinmusard/otel-cicd-action/compare/v2.2.3...HEAD
[unreleased]: https://github.com/corentinmusard/otel-cicd-action/compare/v4.0.0...HEAD
[4.0.0]: https://github.com/corentinmusard/otel-cicd-action/compare/v3.0.0...v4.0.0
[3.0.0]: https://github.com/corentinmusard/otel-cicd-action/compare/v2.2.4...v3.0.0
[2.2.4]: https://github.com/corentinmusard/otel-cicd-action/compare/v2.2.3...v2.2.4
[2.2.3]: https://github.com/corentinmusard/otel-cicd-action/compare/v2.2.2...v2.2.3
[2.2.2]: https://github.com/corentinmusard/otel-cicd-action/compare/v2.2.1...v2.2.2
[2.2.1]: https://github.com/corentinmusard/otel-cicd-action/compare/v2.2.0...v2.2.1
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ cd otel-cicd-action
Setup precommit hook, install dependencies:

```sh
npm run prepare
npm i
npm run prepare
```

Fill `.env.test` based on `.env.test.example`.
Expand Down
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ We provide sample code for popular platforms. If you feel one is missing, please
| New Relic | [newrelic.yml](.github/workflows/newrelic.yml) |
| Honeycomb | [honeycomb.yml](.github/workflows/honeycomb.yml) |
| Dash0 | [dash0.yml](.github/workflows/dash0.yml) |
| Jaeger | WIP |
| Grafana | WIP |

### On workflow_run event

Expand All @@ -43,7 +41,7 @@ jobs:
otel-cicd-actions:
runs-on: ubuntu-latest
steps:
- uses: corentinmusard/otel-cicd-action@v2
- uses: corentinmusard/otel-cicd-action@v4
with:
otlpEndpoint: grpc://api.honeycomb.io:443/
otlpHeaders: ${{ secrets.OTLP_HEADERS }}
Expand All @@ -64,7 +62,7 @@ jobs:
needs: [build] # must run when all jobs are completed
steps:
- name: Export workflow
uses: corentinmusard/otel-cicd-action@v2
uses: corentinmusard/otel-cicd-action@v4
with:
otlpEndpoint: grpc://api.honeycomb.io:443/
otlpHeaders: ${{ secrets.OTLP_HEADERS }}
Expand Down Expand Up @@ -102,7 +100,7 @@ Attributes are splitted on `,` and then each key/value are splitted on the first

```yaml
- name: Export workflow
uses: corentinmusard/otel-cicd-action@v2
uses: corentinmusard/otel-cicd-action@v4
with:
otlpEndpoint: "CHANGE ME"
otlpHeaders: "CHANGE ME"
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Export CI/CD workflows to any endpoint compatible with OpenTelemetr
author: Corentin Musard

runs:
using: node20
using: node24
main: dist/index.js

inputs:
Expand Down
27 changes: 0 additions & 27 deletions biome.json

This file was deleted.

20 changes: 20 additions & 0 deletions biome.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"extends": ["ultracite/biome/core"],
"files": { "includes": ["!**/dist"] },
"formatter": {
"indentStyle": "space",
"lineWidth": 120
},
"linter": {
"rules": {
"performance": {
"noNamespaceImport": "off"
},
"complexity": {
// conflicts with tsconfig
"useLiteralKeys": "off"
}
}
}
}
Loading