Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Add opentelemetry instrumentation #146

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open

Conversation

hamersaw
Copy link
Contributor

@hamersaw hamersaw commented Nov 23, 2022

TL;DR

Adding a new telemetryutils package that adapts the opentelemetry functionality for use in Flyte repos. This includes support for multiple TracerProviders allowing logical partitioning of tracers within single binary. Also instruments the blobstore and provides a wrapper for instrumenting k8s client.

Type

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

  • Code completed
  • Smoke tested
  • Unit tests added
  • Code documentation added
  • Any pending items have an associated Issue

Complete description

^^^

Tracking Issue

flyteorg/flyte#3304

Follow-up issue

NA

Signed-off-by: Daniel Rammer <[email protected]>
Signed-off-by: Dan Rammer <[email protected]>
Signed-off-by: Dan Rammer <[email protected]>
Signed-off-by: Dan Rammer <[email protected]>
@codecov
Copy link

codecov bot commented Nov 23, 2022

Codecov Report

Merging #146 (9cbeef9) into master (3322b07) will decrease coverage by 1.44%.
The diff coverage is 40.20%.

@@            Coverage Diff             @@
##           master     #146      +/-   ##
==========================================
- Coverage   68.18%   66.75%   -1.44%     
==========================================
  Files          69       73       +4     
  Lines        4083     4268     +185     
==========================================
+ Hits         2784     2849      +65     
- Misses       1141     1249     +108     
- Partials      158      170      +12     
Flag Coverage Δ
unittests 66.75% <40.20%> (-1.44%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
cli/pflags/api/namedtype_enumer.go 0.00% <ø> (ø)
storage/config.go 66.66% <ø> (ø)
storage/storage.go 100.00% <ø> (ø)
storage/utils.go 65.00% <0.00%> (-5.28%) ⬇️
telemetryutils/config.go 0.00% <0.00%> (ø)
telemetryutils/k8s.go 0.00% <0.00%> (ø)
telemetryutils/config_flags.go 25.00% <25.00%> (ø)
storage/stow_store.go 75.70% <31.81%> (-3.85%) ⬇️
telemetryutils/factory.go 64.51% <64.51%> (ø)
storage/mem_store.go 82.00% <81.81%> (-0.93%) ⬇️
... and 3 more

... and 1 file with indirect coverage changes

@hamersaw
Copy link
Contributor Author

hamersaw commented Jan 3, 2023

closed in favor of #149

hamersaw added 2 commits March 9, 2023 08:50
Signed-off-by: Daniel Rammer <[email protected]>
Signed-off-by: Daniel Rammer <[email protected]>
Signed-off-by: Daniel Rammer <[email protected]>
@hamersaw hamersaw marked this pull request as ready for review March 11, 2023 01:56
@kumare3
Copy link
Contributor

kumare3 commented Jul 27, 2023

Does it also change are
Dependency from Prometheus to
Open telemetry? Should we

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants