Skip to content

Commit 61fda6e

Browse files
authored
Monitoring and release pipeline (#490)
* Adding meta data for monitoring packages * Added script for monitoring and updating packages * Added github action for monitoring and updating * Updated github workflow for version monitoring and updation. * Updated script not to create a duplicate PR if one already exists for the same version * Scheduling the job to run at 4am on a daily basis * Refactored the monitoring script * Changed the title of Github Action
1 parent 990d72b commit 61fda6e

File tree

23 files changed

+286
-1
lines changed

23 files changed

+286
-1
lines changed

.github/workflows/package_monitor.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Auto update for instrumentation packages
2+
run-name: Running job for checking newer packages and updating instrumentation
3+
on:
4+
schedule:
5+
- cron: '0 4 * * *'
6+
jobs:
7+
monitor-update:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Install package
11+
run: |
12+
sudo apt-get -y install jq
13+
14+
- uses: actions/checkout@v3
15+
name: Checkout repo
16+
with:
17+
fetch-depth: 0
18+
ssh-key: ${{secrets.PRIVATE_KEY_GO_TRACER_RELEASE}}
19+
20+
- name: Run script to monitor packages and create PR with updated changes
21+
id: verison_updater
22+
run: ./version_updater.sh
23+
shell: bash {0}
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

instrumentation/instaamqp/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,9 @@ See the [`instaamqp` package documentation][godoc] for detailed examples.
117117
[godoc]: https://pkg.go.dev/github.com/instana/go-sensor/instrumentation/instaamqp
118118
[instaamqp.WrapChannel]: https://pkg.go.dev/github.com/instana/go-sensor/instrumentation/instaamqp#WrapChannel
119119
[amqp.Channel]: https://pkg.go.dev/github.com/streadway/[email protected]#Channel
120+
121+
<!---
122+
Mandatory comment section for CI/CD !!
123+
target-pkg-url: github.com/streadway/amqp
124+
current-version: v1.0.0
125+
--->

instrumentation/instaamqp091/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,3 +132,9 @@ See the [`instaamqp091` package documentation][godoc] for detailed examples.
132132
[godoc]: https://pkg.go.dev/github.com/instana/go-sensor/instrumentation/instaamqp091
133133
[instaamqp091.WrapChannel]: https://pkg.go.dev/github.com/instana/go-sensor/instrumentation/instaamqp091#WrapChannel
134134
[amqp.Channel]: https://pkg.go.dev/github.com/rabbitmq/amqp091-go#Channel
135+
136+
<!---
137+
Mandatory comment section for CI/CD !!
138+
target-pkg-url: github.com/rabbitmq/amqp091-go
139+
current-version: v1.5.0
140+
--->

instrumentation/instaawssdk/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,3 +116,9 @@ Known limitations:
116116
[NewSensor]: https://pkg.go.dev/github.com/instana/go-sensor?tab=doc#NewSensor
117117
[InstrumentSession]: https://pkg.go.dev/github.com/instana/go-sensor/instrumentation/instaawssdk?tab=doc#InstrumentSession
118118
[SpanContextFromSQSMessage]: https://pkg.go.dev/github.com/instana/go-sensor/instrumentation/instaawssdk?tab=doc#SpanContextFromSQSMessage
119+
120+
<!---
121+
Mandatory comment section for CI/CD !!
122+
target-pkg-url: github.com/aws/aws-sdk-go
123+
current-version: v1.44.209
124+
--->

instrumentation/instaawsv2/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,9 @@ Hence, to avoid collisions, it is recommended to avoid these keys in your applic
5757
[SpanContextFromSQSMessage]: https://pkg.go.dev/github.com/instana/go-sensor/instrumentation/instaawsv2?tab=doc#SpanContextFromSQSMessage
5858
[aws-sdk-go-v2-github]: https://github.com/aws/aws-sdk-go-v2
5959
[aws-config]: https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/config#Config
60+
61+
<!---
62+
Mandatory comment section for CI/CD !!
63+
target-pkg-url: github.com/aws/aws-sdk-go-v2
64+
current-version: v1.21.0
65+
--->

instrumentation/instaazurefunction/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ Refer the [`instaazurefunction`](https://pkg.go.dev/github.com/instana/go-sensor
4444
Limitations
4545
-----------
4646
- The instrumentation supports only HTTP and Queue trigger types.
47-
- The instrumentation cannot support HTTP triggers if `enableForwardingHttpRequest` is set to `true` in the `host.json` file.
47+
- The instrumentation cannot support HTTP triggers if `enableForwardingHttpRequest` is set to `true` in the `host.json` file.

instrumentation/instabeego/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,10 @@ _, err := req.Response()
6969
[godoc]: https://pkg.go.dev/github.com/instana/go-sensor/instrumentation/instabeego
7070
[serverInstrumentationExample]: https://pkg.go.dev/github.com/instana/go-sensor/instrumentation/instabeego#example-package-ServerInstrumentation
7171
[clientInstrumentationExample]: https://pkg.go.dev/github.com/instana/go-sensor/instrumentation/instabeego#example-package-HttpClientInstrumentation
72+
73+
74+
<!---
75+
Mandatory comment section for CI/CD !!
76+
target-pkg-url: github.com/beego/beego/v2
77+
current-version: v2.1.3
78+
--->

instrumentation/instaecho/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,9 @@ e.GET("/foo", func(c echo.Context) error { /* ... */ })
3333

3434
[godoc]: https://pkg.go.dev/github.com/instana/go-sensor/instrumentation/instaecho
3535
[fullExample]: https://pkg.go.dev/github.com/instana/go-sensor/instrumentation/instaecho#example-package
36+
37+
<!---
38+
Mandatory comment section for CI/CD !!
39+
target-pkg-url: github.com/labstack/echo/v4
40+
current-version: v0.4.9
41+
--->

instrumentation/instafiber/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,9 @@ return c.SendString("Hello world!")
3333
Refer to [`instafiber`](https://pkg.go.dev/github.com/instana/go-sensor/instrumentation/instafiber) package documentation for more details.
3434

3535
[godoc]: https://pkg.go.dev/github.com/instana/go-sensor/instrumentation/instafiber
36+
37+
<!---
38+
Mandatory comment section for CI/CD !!
39+
target-pkg-url: github.com/gofiber/fiber/v2
40+
current-version: v2.50.0
41+
--->

instrumentation/instagin/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,9 @@ engine.GET("/api", func(c *gin.Context) {}
4343

4444
[godoc]: https://pkg.go.dev/github.com/instana/go-sensor/instrumentation/instagin
4545
[fullExample]: https://github.com/instana/go-sensor/blob/main/example/gin/main.go
46+
47+
<!---
48+
Mandatory comment section for CI/CD !!
49+
target-pkg-url: github.com/gin-gonic/gin
50+
current-version: v1.9.1
51+
--->

0 commit comments

Comments
 (0)