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

feat: OpenTelemetry intrumentation #29

Merged
merged 2 commits into from
Mar 11, 2020
Merged

Conversation

gianarb
Copy link
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 [email protected]

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 <[email protected]>
@gianarb gianarb added the kprofefe It is in the continuous collector and kprofefe binary space label Mar 6, 2020
wg.Done()
return
if err != nil {
logger.Fatal("Impossible to retrive a kubernetes config", zap.Error(err))
Copy link

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
@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 <[email protected]>
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