Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 70554e246e | |||
|
da69271e82
|
|||
| 3926b6133e | |||
| aa582b6706 | |||
| a48d4242b3 | |||
| 0a91d34815 | |||
| 68b2008b64 | |||
| 0711246d48 | |||
| 94bbb2c47e | |||
|
e05d98d150
|
|||
| a0cc0518be |
@@ -0,0 +1,30 @@
|
||||
name: otelsetup
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/setup-go@v6
|
||||
with:
|
||||
go-version: 'stable'
|
||||
- name: Run tests
|
||||
run: go test -race -coverprofile=coverage.txt ./...
|
||||
|
||||
vulnerabilities:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/setup-go@v6
|
||||
with:
|
||||
go-version: 'stable'
|
||||
- name: Check vulnerabilities
|
||||
run: |
|
||||
go install golang.org/x/vuln/cmd/govulncheck@latest
|
||||
govulncheck ./...
|
||||
@@ -10,13 +10,6 @@ repos:
|
||||
args:
|
||||
- --allow-multiple-documents
|
||||
- id: check-added-large-files
|
||||
- repo: https://gitlab.com/devopshq/gitlab-ci-linter
|
||||
rev: v1.0.6
|
||||
hooks:
|
||||
- id: gitlab-ci-linter
|
||||
args:
|
||||
- --project
|
||||
- unboundsoftware/shiny/otelsetup
|
||||
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
|
||||
rev: v9.23.0
|
||||
hooks:
|
||||
@@ -30,14 +23,14 @@ repos:
|
||||
- id: go-imports
|
||||
args:
|
||||
- -local
|
||||
- gitlab.com/unboundsoftware/shiny/sentrysetup
|
||||
- git.unbound.se/shiny/otelsetup
|
||||
- repo: https://github.com/lietu/go-pre-commit
|
||||
rev: v1.0.0
|
||||
hooks:
|
||||
- id: go-test
|
||||
- id: gofumpt
|
||||
- repo: https://github.com/golangci/golangci-lint
|
||||
rev: v2.7.2
|
||||
rev: v2.8.0
|
||||
hooks:
|
||||
- id: golangci-lint-full
|
||||
- repo: https://github.com/gitleaks/gitleaks
|
||||
|
||||
@@ -17,7 +17,7 @@ Provides standardized OpenTelemetry configuration for tracing, metrics, and logg
|
||||
### Usage
|
||||
|
||||
```go
|
||||
import "gitlab.com/unboundsoftware/shiny/otelsetup"
|
||||
import "git.unbound.se/shiny/otelsetup"
|
||||
|
||||
// Bootstrap OpenTelemetry SDK
|
||||
shutdown, err := otelsetup.SetupOTelSDK(ctx, enabled, serviceName, buildVersion, environment)
|
||||
|
||||
@@ -1,4 +1 @@
|
||||
# Shiny otelsetup
|
||||
|
||||
[](https://gitlab.com/unboundsoftware/shiny/otelsetup/commits/main)
|
||||
[](https://codecov.io/gl/unboundsoftware:shiny/otelsetup)
|
||||
|
||||
Reference in New Issue
Block a user