forked from krzko/run-with-telemetry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yaml
85 lines (79 loc) Β· 2.52 KB
/
action.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: Run with Telemetry
description: >
Execute a command on the runner and export the associated OpenTelemetry
trace. This action is cross-platform compatible across Linux, macOS, and Windows.
It is designed to work optimally with the OpenTelemetry Collector,
GitHub Actions Event Receiver, aligning the telemetry within steps to what
the receiver emits. This action also injects OTEL-* environment variables
into the shell, enabling further configuration of the OpenTelemetry
instrumentation.
author: Kristof Kowalski
inputs:
github-token:
required: true
default: ${{ github.token }}
description: A token that can be used with the GitHub API.
job-as-parent:
required: false
default: false
description: >
Use the job name as the trace parent. This is useful when you want to
correlate the trace with the job.
job-name:
required: false
description: >
The name of the GitHub Actions job.
otel-exporter-otlp-endpoint:
required: true
description: >
A base endpoint URL for any signal type, with an optionally-specified
port number.
otel-exporter-otlp-headers:
required: false
description: >
Headers to attach to outgoing the OTLP gRPC exporter. Set via comma
separated values; header1=value1,header2=value2.
otel-resource-attributes:
required: false
description: >
Key-value pairs to be used as resource attributes. Set via comma
seperated values; key1=value1,key2=value2
otel-service-name:
required: true
description: >
Logical name of the service. Sets the value of the service.name resource
attribute.
run:
required: true
description: >
The command to run.
shell:
required: false
default: bash
description: >
You can override the default shell settings in the runner's operating
system using the shell keyword. Supported options are bash, pwsh,
python, sh, cmd, pwsh and powershell. The default is bash.
stderr-as-info:
required: false
default: false
description: >
If set to 'true', logs stderr as informational messages instead of errors.
Useful for commands that use stderr for standard output.
step-name:
required: true
description: >
The name of the step.
outputs:
trace-id:
description: >
The Trace ID generated for the OpenTelemetry trace.
job-name:
description: >
The name of the GitHub Actions job.
runs:
using: node20
main: index.js
branding:
icon: person-running
color: gray-dark