Skip to content

Commit

Permalink
added created_at, updated_at and run_started_at attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
nikordaris committed May 4, 2022
1 parent 5c75abe commit 8ab0cc5
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ jobs:
| github.run_attempt | integer | Github Workflow Run Attempt |
| github.run_id | integer | Github Workflow Run ID |
| github.run_number | integer | Github Workflow Run Number |
| github.created_at | integer | Github Workflow Run Created Timestamp |
| github.updated_at | integer | Github Workflow Run Updated Timestamp |
| github.run_started_at | integer | Github Workflow Run Started Timestamp |
| github.html_url | string | Github Workflow Run HTML URL |
| github.author_email | string | Github Workflow Run Author Email |
| github.author_name | string | Github Workflow Run Author Name |
Expand Down
3 changes: 3 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,9 @@ async function traceWorkflowRunJobs({ provider, workflowRunJobs, }) {
"github.event": workflowRunJobs.workflowRun.event,
"github.workflow": workflowRunJobs.workflowRun.name || undefined,
"github.conclusion": workflowRunJobs.workflowRun.conclusion || undefined,
"github.created_at": workflowRunJobs.workflowRun.created_at,
"github.updated_at": workflowRunJobs.workflowRun.updated_at,
"github.run_started_at": workflowRunJobs.workflowRun.run_started_at,
"github.author_name": ((_e = (_d = workflowRunJobs.workflowRun.head_commit) === null || _d === void 0 ? void 0 : _d.author) === null || _e === void 0 ? void 0 : _e.name) || undefined,
"github.author_email": ((_g = (_f = workflowRunJobs.workflowRun.head_commit) === null || _f === void 0 ? void 0 : _f.author) === null || _g === void 0 ? void 0 : _g.email) || undefined,
"github.head_sha": workflowRunJobs.workflowRun.head_sha,
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "otel-export-trace",
"version": "1.5.5",
"version": "1.5.6",
"description": "Github Action to export Open Telemetry traces for Workflow runs",
"main": "lib/index.js",
"scripts": {
Expand Down
3 changes: 3 additions & 0 deletions src/tracing/job.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ export async function traceWorkflowRunJobs({
"github.workflow": workflowRunJobs.workflowRun.name || undefined,
"github.conclusion":
workflowRunJobs.workflowRun.conclusion || undefined,
"github.created_at": workflowRunJobs.workflowRun.created_at,
"github.updated_at": workflowRunJobs.workflowRun.updated_at,
"github.run_started_at": workflowRunJobs.workflowRun.run_started_at,
"github.author_name":
workflowRunJobs.workflowRun.head_commit?.author?.name || undefined,
"github.author_email":
Expand Down

0 comments on commit 8ab0cc5

Please sign in to comment.