Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support: top-trace with some file exporters #5

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft
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
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

- [Go](https://golang.org/dl/)
- [Gh](https://cli.github.com/)
- [Docker](https://docs.docker.com/get-docker/)

### Install tools

Expand Down Expand Up @@ -55,8 +56,15 @@ Copy the `ngrok` URL and go to your GitHub repository, in this case we use `elas

<img src="./docs/images/webhook.png" width="512"/>


### Start Jaeger

```shell
docker compose up
```

### Run the collector

```shell
make run
```
```
1 change: 1 addition & 0 deletions builder-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ exporters:
- gomod: go.opentelemetry.io/collector/exporter/debugexporter v0.102.0
- gomod: go.opentelemetry.io/collector/exporter/otlpexporter v0.102.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/elasticsearchexporter v0.102.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/fileexporter v0.102.0

processors:
- gomod: go.opentelemetry.io/collector/processor/batchprocessor v0.102.0
Expand Down
8 changes: 7 additions & 1 deletion config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,20 @@ extensions:
exporters:
debug:
verbosity: basic
file:
path: /tmp/logs.txt
otlp:
endpoint: "localhost:4317"
tls:
insecure: true

service:
extensions: [zpages, pprof]
pipelines:
traces:
receivers: [githubactionsjunit]
processors: [batch]
exporters: [debug]
exporters: [debug, file, otlp]
telemetry:
logs:
level: debug
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: '3.9'

services:
jaeger:
image: jaegertracing/all-in-one:${JAEGER_VERSION:-latest}
ports:
- "16686:16686"
- "4317:4317"
environment:
- LOG_LEVEL=debug
60 changes: 57 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,62 @@ module github.com/reakaleek/opentelemetry-github-actions-junit-receiver
go 1.21.3

require (
github.com/google/go-github/v62 v62.0.0 // indirect
github.com/joshdk/go-junit v1.0.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib v0.102.0 // indirect
github.com/google/go-github/v62 v62.0.0
github.com/google/uuid v1.6.0
github.com/joshdk/go-junit v1.0.0
github.com/julienschmidt/httprouter v1.3.0
github.com/stretchr/testify v1.9.0
go.opentelemetry.io/collector/component v0.102.1
go.opentelemetry.io/collector/config/confighttp v0.102.0
go.opentelemetry.io/collector/config/configopaque v1.9.0
go.opentelemetry.io/collector/consumer v0.102.1
go.opentelemetry.io/collector/pdata v1.9.0
go.opentelemetry.io/collector/receiver v0.102.0
go.opentelemetry.io/otel v1.27.0
go.uber.org/zap v1.27.0
)

require (
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/felixge/httpsnoop v1.0.4 // indirect
github.com/fsnotify/fsnotify v1.7.0 // indirect
github.com/go-logr/logr v1.4.1 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-viper/mapstructure/v2 v2.0.0-alpha.1 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/google/go-querystring v1.1.0 // indirect
github.com/hashicorp/go-version v1.7.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/klauspost/compress v1.17.8 // indirect
github.com/knadh/koanf/maps v0.1.1 // indirect
github.com/knadh/koanf/providers/confmap v0.1.0 // indirect
github.com/knadh/koanf/v2 v2.1.1 // indirect
github.com/mitchellh/copystructure v1.2.0 // indirect
github.com/mitchellh/reflectwalk v1.0.2 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/rs/cors v1.11.0 // indirect
go.opentelemetry.io/collector v0.102.1 // indirect
go.opentelemetry.io/collector/config/configauth v0.102.0 // indirect
go.opentelemetry.io/collector/config/configcompression v1.9.0 // indirect
go.opentelemetry.io/collector/config/configtelemetry v0.102.1 // indirect
go.opentelemetry.io/collector/config/configtls v0.102.0 // indirect
go.opentelemetry.io/collector/config/internal v0.102.0 // indirect
go.opentelemetry.io/collector/confmap v0.102.1 // indirect
go.opentelemetry.io/collector/extension v0.102.0 // indirect
go.opentelemetry.io/collector/extension/auth v0.102.0 // indirect
go.opentelemetry.io/collector/featuregate v1.9.0 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.52.0 // indirect
go.opentelemetry.io/otel/metric v1.27.0 // indirect
go.opentelemetry.io/otel/trace v1.27.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/net v0.25.0 // indirect
golang.org/x/sys v0.20.0 // indirect
golang.org/x/text v0.15.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240521202816-d264139d666e // indirect
google.golang.org/grpc v1.64.0 // indirect
google.golang.org/protobuf v1.34.1 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading