Skip to content

feat: OpenTelemetry intrumentation#29

Merged
gianarb merged 2 commits intomasterfrom
feature/poc-opentelemetry
Mar 11, 2020
Merged

feat: OpenTelemetry intrumentation#29
gianarb merged 2 commits intomasterfrom
feature/poc-opentelemetry

Conversation

@gianarb
Copy link
Copy Markdown
Member

@gianarb gianarb commented Mar 6, 2020

Fixed #12

  • Bootstrap opentelemetry
  • By default export JSON
  • Root trace is the cmd.Execute
  • One span for every goroutine (measure concurrency) *
  • Allow exporting to the collector (blocked by
    opentelemetry collector trace exporter open-telemetry/opentelemetry-go#497)
  • Find a way to trace kubernetes client-go
  • Trace http.Client that makes requests to profefe API
  • Trace gathering profiling from Pods.

In order to gather all the profiles efficiently, I use a channel
that spreads the work across many goroutines (atm fixed to 10). The root
span has a child for any goroutine.

Signed-off-by: Gianluca Arbezzano gianarb92@gmail.com

Fixed #12

- [x] Bootstrap opentelemetry
- [x] By default export json
- [x] Root trace is the cmd.Execute
- [x] One span for every goroutine (measure concurrency) *
- [ ] Allow to export to collector (blocked by
open-telemetry/opentelemetry-go#497)
- [ ] Find a way to trace kubernetes client-go
- [ ] Trace http.Client that makes requests to profefe API

* In order to get the gathering of the profile efficient I use a channel
that spread the work across many goroutine (atm fixed to 10). The root
span has a child for any goroutine.

Signed-off-by: Gianluca Arbezzano <gianarb92@gmail.com>
@gianarb gianarb added the kprofefe It is in the continuous collector and kprofefe binary space label Mar 6, 2020
Comment thread pkg/cmd/kprofefe.go Outdated
wg.Done()
return
if err != nil {
logger.Fatal("Impossible to retrive a kubernetes config", zap.Error(err))
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

retrieve, same on line 74 🤓

@gianarb gianarb force-pushed the feature/poc-opentelemetry branch from 4384678 to 0f01b32 Compare March 11, 2020 17:34
Signed-off-by: Gianluca Arbezzano <gianarb92@gmail.com>
@gianarb gianarb merged commit 48e5eff into master Mar 11, 2020
@gianarb gianarb deleted the feature/poc-opentelemetry branch March 11, 2020 17:45
gianarb added a commit that referenced this pull request Mar 11, 2020
feat: OpenTelemetry intrumentation
Signed-off-by: Gianluca Arbezzano <gianarb92@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kprofefe It is in the continuous collector and kprofefe binary space

Development

Successfully merging this pull request may close these issues.

Monitor kprofefe with opentelemetry

2 participants