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

[GEN-1738] Add service name to instrumentation config #1830

Merged
Show file tree
Hide file tree
Changes from 222 commits
Commits
Show all changes
235 commits
Select commit Hold shift + click to select a range
95b7e2a
WIP
alonkeyval Jul 30, 2023
91375ca
Merge branch 'main' of github.com:alonkeyval/odigos into TASK-149-ove…
alonkeyval Jul 30, 2023
3f0700a
WIP
alonkeyval Jul 30, 2023
9e4a5ac
source manage card
alonkeyval Jul 30, 2023
e03bf92
Merge pull request #344 from alonkeyval/TASK-149-overview-container
alonkeyval Jul 30, 2023
0c4b42e
fixed pr comments
alonkeyval Jul 30, 2023
d5fe630
fixed pr comments
alonkeyval Jul 30, 2023
fbaa04c
Merge branch 'main' of github.com:alonkeyval/odigos into TASK-142-dis…
alonkeyval Jul 30, 2023
5504348
sources list display
alonkeyval Jul 30, 2023
ae80c0a
change image url to cloud front
alonkeyval Jul 30, 2023
79f2c53
fixed pr comments
alonkeyval Jul 30, 2023
8267a10
Merge pull request #346 from alonkeyval/TASK-107-overview-sources-card
alonkeyval Jul 30, 2023
5fffc40
add new action menu
alonkeyval Jul 30, 2023
18cd5c4
on add btn click
alonkeyval Jul 30, 2023
3ac58d1
Merge pull request #347 from alonkeyval/TASK-142-display-source-manag…
alonkeyval Jul 30, 2023
ab642bd
WIP
alonkeyval Jul 30, 2023
b6287db
Merge pull request #348 from alonkeyval/TASK-143-add-new-source-btn
alonkeyval Jul 31, 2023
64c31c4
restructe source filter option
alonkeyval Jul 31, 2023
4192289
filters
alonkeyval Jul 31, 2023
1006d44
WIP
alonkeyval Jul 31, 2023
537aa75
new back button
alonkeyval Jul 31, 2023
ab32b46
WIP
alonkeyval Jul 31, 2023
d1c9029
Merge pull request #359 from alonkeyval/TASK-145-handle-new-sources-c…
alonkeyval Jul 31, 2023
042cb10
Merge branch 'main' of github.com:alonkeyval/odigos into overview-sou…
alonkeyval Jul 31, 2023
0d97d64
filter instromented apps
alonkeyval Jul 31, 2023
f38568b
WIP
alonkeyval Jul 31, 2023
d57d024
WIP
alonkeyval Jul 31, 2023
6b1a812
WIP
alonkeyval Jul 31, 2023
d6e9f6f
WIP
alonkeyval Jul 31, 2023
7c655a0
WIP
alonkeyval Jul 31, 2023
fbe5504
WIP
alonkeyval Aug 1, 2023
8a93e8a
fixed pr comments
alonkeyval Aug 1, 2023
d9958c8
fixed pr comments
alonkeyval Aug 1, 2023
89dc8ae
Task 158 back button (#360)
alonkeyval Aug 1, 2023
5d5bf9b
fixed pr comments
alonkeyval Aug 1, 2023
a682311
Merge remote-tracking branch 'upstream/main' into TASK-141-sources-ov…
alonkeyval Aug 1, 2023
15ba9c3
Merge remote-tracking branch 'upstream/TASK-141-sources-overview' int…
alonkeyval Aug 1, 2023
a131614
fixed pr comments
alonkeyval Aug 1, 2023
180fd5d
hide checkboxs
alonkeyval Aug 1, 2023
d4d5211
WIP
alonkeyval Aug 1, 2023
97e1983
Merge branch 'main' of github.com:alonkeyval/odigos into TASK-161-zer…
alonkeyval Aug 1, 2023
61fc2fc
WIP
alonkeyval Aug 1, 2023
49f6983
fixed pr comments
alonkeyval Aug 1, 2023
b1f12e7
remove scrollbars
alonkeyval Aug 1, 2023
f81d618
WIP
alonkeyval Aug 1, 2023
5e68cdd
added quick help
alonkeyval Aug 2, 2023
32bec3d
WIP
alonkeyval Aug 2, 2023
e368ede
Merge remote-tracking branch 'upstream/main' into TASK-141-sources-ov…
alonkeyval Aug 2, 2023
4d7b99d
Merge remote-tracking branch 'upstream/TASK-141-sources-overview' int…
alonkeyval Aug 2, 2023
f91d357
create destinaion flow match url
alonkeyval Aug 2, 2023
f0e6d64
new dest flow
alonkeyval Aug 2, 2023
0a30a23
manage dest flow
alonkeyval Aug 2, 2023
71e52b7
fixed pr comments
alonkeyval Aug 2, 2023
55cae09
Overview sources (#364)
alonkeyval Aug 2, 2023
60a61ee
WIP
alonkeyval Aug 2, 2023
c44837e
WIP
alonkeyval Aug 2, 2023
6253cbc
Merge branch 'main' into TASK-141-sources-overview
alonkeyval Aug 2, 2023
59029f1
Merge branch 'TASK-141-sources-overview' into TASK-156-match-url-to-a…
alonkeyval Aug 2, 2023
924cee2
fixed pr comments
alonkeyval Aug 2, 2023
004ca63
restruce file system
alonkeyval Aug 2, 2023
cf77635
wip
alonkeyval Aug 2, 2023
4616dcf
add pen icon and danger zone
alonkeyval Aug 2, 2023
5d85d7c
manage delete source
alonkeyval Aug 3, 2023
b655e18
WIP
alonkeyval Aug 3, 2023
592be7e
WIP
alonkeyval Aug 3, 2023
ef93cc6
WIP
alonkeyval Aug 3, 2023
9e322bf
WIP
alonkeyval Aug 3, 2023
5ad8d1d
WIP
alonkeyval Aug 3, 2023
26033f7
Task 165 manage source (#368)
alonkeyval Aug 3, 2023
4e02ce6
WIP
alonkeyval Aug 3, 2023
b49275e
delete files
alonkeyval Aug 3, 2023
beb029f
WIP
alonkeyval Aug 3, 2023
4c28472
move page logic to container
alonkeyval Aug 3, 2023
5eb7361
move page logic to container
alonkeyval Aug 3, 2023
5fe763a
WIP
alonkeyval Aug 3, 2023
bfb54d8
Task 168 refactor (#370)
alonkeyval Aug 3, 2023
0662844
Merge branch 'TASK-141-sources-overview' into main
alonkeyval Aug 3, 2023
f15d28d
WIP
alonkeyval Aug 3, 2023
cfbfc2a
Merge remote-tracking branch 'upstream/main'
alonkeyval Aug 6, 2023
c9d170e
edit resource name
alonkeyval Aug 6, 2023
3b8983c
refactor sources|
alonkeyval Aug 6, 2023
0dbc53d
change files names
alonkeyval Aug 7, 2023
bb9c9d5
change files names
alonkeyval Aug 7, 2023
c2e13cd
delete dest fixed
alonkeyval Aug 7, 2023
61183a4
WIP
alonkeyval Aug 7, 2023
c374b8e
refactor services
alonkeyval Aug 7, 2023
55be5ce
Merge branch 'main' of github.com:alonkeyval/odigos
alonkeyval Aug 7, 2023
f1618a5
WIP
alonkeyval Aug 7, 2023
fd269a6
change file names
alonkeyval Aug 7, 2023
8769e67
WIP
alonkeyval Aug 7, 2023
f5220c5
WIP
alonkeyval Aug 7, 2023
7626088
add contact button
alonkeyval Aug 8, 2023
cef20f6
WIP
alonkeyval Aug 9, 2023
52f92f0
fixed setup source and destinations list wrapping
alonkeyval Aug 9, 2023
6095f4d
manage destination list set up
alonkeyval Aug 9, 2023
960f16d
remove unused code
alonkeyval Aug 10, 2023
d62193b
fixed repeat numbers
alonkeyval Aug 10, 2023
ac1b8f9
remove comments
alonkeyval Aug 10, 2023
419d22c
Merge branch 'TASK-217-centerlize-lists' into TASK-218-remove-next-stop
alonkeyval Aug 10, 2023
68ffb8c
Merge branch 'keyval-dev:main' into main
alonkeyval Aug 10, 2023
5bb8c42
Merge branch 'main' of github.com:alonkeyval/odigos into TASK-218-rem…
alonkeyval Aug 10, 2023
883d21b
WIP
alonkeyval Aug 10, 2023
d6f4127
focus on hover
alonkeyval Aug 10, 2023
7c0e27a
types
alonkeyval Aug 10, 2023
d2ae596
fixed focus issue
alonkeyval Aug 10, 2023
0d38d2a
remove scroll bar on firefox
alonkeyval Aug 10, 2023
0a35b8c
fixed focus issue
alonkeyval Aug 10, 2023
fec0da9
WIP
alonkeyval Aug 10, 2023
41f1d1d
WIP
alonkeyval Aug 10, 2023
41d9ec0
WIP
alonkeyval Aug 10, 2023
b91dcfc
Merge branch 'keyval-dev:main' into main
alonkeyval Aug 10, 2023
0581273
Merge branch 'keyval-dev:main' into main
alonkeyval Aug 16, 2023
7f83013
Merge branch 'keyval-dev:main' into main
alonkeyval Aug 16, 2023
764b34e
Merge branch 'keyval-dev:main' into main
alonkeyval Aug 17, 2023
aae797f
Merge branch 'keyval-dev:main' into main
alonkeyval Aug 24, 2023
eccae08
WIP
alonkeyval Aug 24, 2023
cbc404c
chore: merge master
alonkeyval Sep 13, 2023
4133dbd
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Oct 24, 2023
0e20d78
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Oct 25, 2023
0e03acd
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Nov 12, 2023
792fa0e
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Nov 28, 2023
dc00780
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Dec 25, 2023
5ea8080
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Dec 25, 2023
af2c604
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Dec 26, 2023
a5458e1
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Jan 3, 2024
f59a287
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Jan 8, 2024
88b0f44
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Jan 8, 2024
d5b91f9
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Jan 29, 2024
692e8de
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Feb 4, 2024
6d2aa66
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Feb 5, 2024
10bdc06
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Feb 8, 2024
fcbd0a9
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Feb 8, 2024
87aec56
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Feb 11, 2024
ea0a726
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Feb 18, 2024
f0c48c9
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Feb 20, 2024
5729525
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Feb 20, 2024
197a7f9
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Feb 21, 2024
442499f
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Feb 22, 2024
daaf4bd
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Feb 26, 2024
0a5e45d
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Feb 29, 2024
d77bd9c
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Mar 3, 2024
37df88e
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Mar 6, 2024
1f8d7ef
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Mar 7, 2024
b84263e
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Mar 7, 2024
25a6e7a
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Mar 10, 2024
caa3fa7
chore: wip
alonkeyval Mar 10, 2024
06afb46
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Mar 11, 2024
da00e35
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Mar 12, 2024
54f669f
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Mar 12, 2024
d89a229
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Mar 12, 2024
16815d7
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Mar 13, 2024
21096f4
chore: wip
alonkeyval Mar 13, 2024
99bac3f
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Mar 14, 2024
8290402
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Mar 18, 2024
82e6b80
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Apr 18, 2024
8b8f4f1
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Apr 25, 2024
285a13b
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval May 8, 2024
e91e7cc
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval May 9, 2024
a53e048
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval May 16, 2024
596be25
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval May 16, 2024
8188793
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval May 19, 2024
9488eb0
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval May 21, 2024
798ea80
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval May 22, 2024
0fd5f20
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval May 22, 2024
fcc88a1
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval May 23, 2024
12395d6
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval May 30, 2024
ffab60d
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval May 30, 2024
c743c28
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Jun 5, 2024
2546917
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Jun 10, 2024
c84d281
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Jun 26, 2024
841a5d0
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Jun 27, 2024
940d60d
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Jun 27, 2024
ca5117d
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Jun 30, 2024
e2742d6
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Jul 1, 2024
ae64828
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Jul 4, 2024
9fb66bc
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Jul 8, 2024
e5e537b
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Jul 10, 2024
db087de
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Jul 10, 2024
0905d78
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Jul 10, 2024
0423cde
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Jul 15, 2024
a973fba
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Jul 16, 2024
175153b
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Jul 17, 2024
5e0c295
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Jul 21, 2024
9c9e33c
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Jul 22, 2024
6338070
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Jul 28, 2024
af913bc
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Aug 12, 2024
6cfbc67
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Aug 14, 2024
ca7c4b9
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Aug 27, 2024
65b5f8b
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Sep 2, 2024
0a6e9b8
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Sep 3, 2024
3791c99
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Sep 3, 2024
16ba495
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Sep 5, 2024
dd14984
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Sep 8, 2024
0502986
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Sep 11, 2024
057dd00
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Sep 17, 2024
7727bc4
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Sep 18, 2024
5551056
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Sep 19, 2024
3d316f8
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Sep 23, 2024
3f38d54
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Sep 23, 2024
9886db3
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Sep 24, 2024
0ef9790
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Sep 25, 2024
1322265
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Sep 25, 2024
fddac2e
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Sep 26, 2024
7a07999
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Sep 28, 2024
882ffcf
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Oct 6, 2024
d08a7d4
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Oct 9, 2024
789c2e4
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Oct 10, 2024
3a98d4d
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Oct 10, 2024
df63cb0
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Oct 27, 2024
89e43e6
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Nov 10, 2024
9926d00
Merge branch 'main' of github.com:keyval-dev/odigos
alonkeyval Nov 11, 2024
6f5bd78
Merge branch 'main' of github.com:keyval-dev/odigos
alonbraymok Nov 12, 2024
19aec2a
Merge branch 'main' of github.com:keyval-dev/odigos
alonbraymok Nov 14, 2024
f3fc906
Merge branch 'main' of github.com:keyval-dev/odigos
alonbraymok Nov 19, 2024
baae6c2
chore: init new workload reconicl
alonbraymok Nov 20, 2024
f04a3c5
feat: update instrumentaion config service name when workload is change
alonbraymok Nov 21, 2024
fe0f7d1
chore: init code to ia reconciler
alonbraymok Nov 21, 2024
f711011
Merge branch 'main' of github.com:keyval-dev/odigos into gen-1738-add…
alonbraymok Nov 21, 2024
37e4f2c
chore: wip
alonbraymok Nov 24, 2024
901e4b6
chore: move workload func to utils
alonbraymok Nov 24, 2024
25d1fb7
chore: revet opam code
alonbraymok Nov 24, 2024
7bbbbdd
Merge branch 'main' into gen-1738-add-service-name-to-instrumentation…
alonkeyval Nov 24, 2024
342cb4f
chore: fixed pr comments
alonbraymok Nov 24, 2024
1d8eba9
Merge branch 'gen-1738-add-service-name-to-instrumentation-config' of…
alonbraymok Nov 24, 2024
46e278c
chore: fixed pr comments
alonbraymok Nov 25, 2024
1c21051
chore: added comments
alonbraymok Nov 25, 2024
ea721ab
Merge branch 'main' into gen-1738-add-service-name-to-instrumentation…
alonkeyval Nov 25, 2024
db64225
chore: make manifests
alonbraymok Nov 25, 2024
d38e1df
Merge branch 'gen-1738-add-service-name-to-instrumentation-config' of…
alonbraymok Nov 25, 2024
e5fb3e1
chore: improve get workload object func
alonbraymok Nov 26, 2024
0e1bc9f
chore: cange func nae
alonbraymok Nov 26, 2024
2d6f0a7
Merge branch 'main' into gen-1738-add-service-name-to-instrumentation…
alonkeyval Nov 26, 2024
7e6430a
Merge branch 'main' into gen-1738-add-service-name-to-instrumentation…
alonkeyval Nov 26, 2024
7061fb3
Merge branch 'main' into gen-1738-add-service-name-to-instrumentation…
alonkeyval Dec 4, 2024
8143cc6
Merge branch 'main' into gen-1738-add-service-name-to-instrumentation…
alonkeyval Dec 4, 2024
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
4 changes: 4 additions & 0 deletions api/config/crd/bases/odigos.io_instrumentationconfigs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,10 @@ spec:
- payloadCollection
type: object
type: array
serviceName:
description: the service.name attribute is used to identify the name
of the service that is generating telemetry data
type: string
type: object
status:
properties:
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions api/odigos/v1alpha1/instrumentationconfig_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ type InstrumentationConfigStatus struct {
// Config for the OpenTelemeetry SDKs that should be applied to a workload.
// The workload is identified by the owner reference
type InstrumentationConfigSpec struct {

// the service.name attribute is used to identify the name of the service that is generating telemetry data
alonkeyval marked this conversation as resolved.
Show resolved Hide resolved
ServiceName string `json:"serviceName,omitempty"`
// true when the runtime details are invalidated and should be recalculated
alonkeyval marked this conversation as resolved.
Show resolved Hide resolved
RuntimeDetailsInvalidated bool `json:"runtimeDetailsInvalidated,omitempty"`

Expand Down
20 changes: 19 additions & 1 deletion instrumentor/controllers/instrumentationconfig/common.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
package instrumentationconfig

import (
"context"
"fmt"

odigosv1alpha1 "github.com/odigos-io/odigos/api/odigos/v1alpha1"
"github.com/odigos-io/odigos/api/odigos/v1alpha1/instrumentationrules"
"github.com/odigos-io/odigos/common"
"github.com/odigos-io/odigos/instrumentor/controllers/utils"
"github.com/odigos-io/odigos/k8sutils/pkg/workload"
"sigs.k8s.io/controller-runtime/pkg/client"
)

func updateInstrumentationConfigForWorkload(ic *odigosv1alpha1.InstrumentationConfig, ia *odigosv1alpha1.InstrumentedApplication, rules *odigosv1alpha1.InstrumentationRuleList) error {
func updateInstrumentationConfigForWorkload(ic *odigosv1alpha1.InstrumentationConfig, ia *odigosv1alpha1.InstrumentedApplication, rules *odigosv1alpha1.InstrumentationRuleList, serviceName string) error {

workloadName, workloadKind, err := workload.ExtractWorkloadInfoFromRuntimeObjectName(ia.Name)
if err != nil {
Expand All @@ -20,6 +24,8 @@ func updateInstrumentationConfigForWorkload(ic *odigosv1alpha1.InstrumentationCo
Kind: workloadKind,
}

ic.Spec.ServiceName = serviceName

sdkConfigs := make([]odigosv1alpha1.SdkConfig, 0, len(ia.Spec.RuntimeDetails))

// create an empty sdk config for each detected programming language
Expand Down Expand Up @@ -239,3 +245,15 @@ func mergeMessagingPayloadCollectionRules(rule1 *instrumentationrules.MessagingP
func boolPtr(b bool) *bool {
return &b
}

// ResolveServiceName determines the service name based on workload kind
Copy link
Collaborator

Choose a reason for hiding this comment

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

this comment is misleading

func resolveServiceName(ctx context.Context, k8sClient client.Client, workloadName string, namespace string, kind workload.WorkloadKind) (string, error) {

workloadResolver := workload.NewK8sK8sWorkloadResolver(k8sClient)
obj, err := workloadResolver.GetWorkloadObject(ctx, workloadName, kind, namespace)

if err != nil {
return "", fmt.Errorf("failed to get workload object to resolve reported service name annotation. will use fallback service name: %w", err)
}
return workload.ExtractServiceNameFromAnnotations(obj.GetAnnotations(), workloadName), nil
}
24 changes: 12 additions & 12 deletions instrumentor/controllers/instrumentationconfig/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func TestUpdateInstrumentationConfigForWorkload_SingleLanguage(t *testing.T) {
},
}
rules := &odigosv1.InstrumentationRuleList{}
err := updateInstrumentationConfigForWorkload(&ic, &ia, rules)
err := updateInstrumentationConfigForWorkload(&ic, &ia, rules, "service-name")
if err != nil {
t.Errorf("Expected nil error, got %v", err)
}
Expand Down Expand Up @@ -72,7 +72,7 @@ func TestUpdateInstrumentationConfigForWorkload_MultipleLanguages(t *testing.T)
},
}
rules := &odigosv1.InstrumentationRuleList{}
err := updateInstrumentationConfigForWorkload(&ic, &ia, rules)
err := updateInstrumentationConfigForWorkload(&ic, &ia, rules, "service-name")
if err != nil {
t.Errorf("Expected nil error, got %v", err)
}
Expand Down Expand Up @@ -119,7 +119,7 @@ func TestUpdateInstrumentationConfigForWorkload_IgnoreUnknownLanguage(t *testing
},
}
rules := &odigosv1.InstrumentationRuleList{}
err := updateInstrumentationConfigForWorkload(&ic, &ia, rules)
err := updateInstrumentationConfigForWorkload(&ic, &ia, rules, "service-name")
if err != nil {
t.Errorf("Expected nil error, got %v", err)
}
Expand Down Expand Up @@ -150,7 +150,7 @@ func TestUpdateInstrumentationConfigForWorkload_NoLanguages(t *testing.T) {
},
}
rules := &odigosv1.InstrumentationRuleList{}
err := updateInstrumentationConfigForWorkload(&ic, &ia, rules)
err := updateInstrumentationConfigForWorkload(&ic, &ia, rules, "service-name")
if err != nil {
t.Errorf("Expected nil error, got %v", err)
}
Expand Down Expand Up @@ -187,7 +187,7 @@ func TestUpdateInstrumentationConfigForWorkload_SameLanguageMultipleContainers(t
},
}
rules := &odigosv1.InstrumentationRuleList{}
err := updateInstrumentationConfigForWorkload(&ic, &ia, rules)
err := updateInstrumentationConfigForWorkload(&ic, &ia, rules, "service-name")
if err != nil {
t.Errorf("Expected nil error, got %v", err)
}
Expand Down Expand Up @@ -237,7 +237,7 @@ func TestUpdateInstrumentationConfigForWorkload_SingleMatchingRule(t *testing.T)
},
},
}
err := updateInstrumentationConfigForWorkload(&ic, &ia, rules)
err := updateInstrumentationConfigForWorkload(&ic, &ia, rules, "service-name")
if err != nil {
t.Errorf("Expected nil error, got %v", err)
}
Expand Down Expand Up @@ -303,7 +303,7 @@ func TestUpdateInstrumentationConfigForWorkload_InWorkloadList(t *testing.T) {
},
}

err := updateInstrumentationConfigForWorkload(&ic, &ia, rules)
err := updateInstrumentationConfigForWorkload(&ic, &ia, rules, "service-name")
if err != nil {
t.Errorf("Expected nil error, got %v", err)
}
Expand Down Expand Up @@ -360,7 +360,7 @@ func TestUpdateInstrumentationConfigForWorkload_NotInWorkloadList(t *testing.T)
},
}

err := updateInstrumentationConfigForWorkload(&ic, &ia, rules)
err := updateInstrumentationConfigForWorkload(&ic, &ia, rules, "service-name")
if err != nil {
t.Errorf("Expected nil error, got %v", err)
}
Expand Down Expand Up @@ -412,7 +412,7 @@ func TestUpdateInstrumentationConfigForWorkload_DisabledRule(t *testing.T) {
},
}

err := updateInstrumentationConfigForWorkload(&ic, &ia, rules)
err := updateInstrumentationConfigForWorkload(&ic, &ia, rules, "service-name")
if err != nil {
t.Errorf("Expected nil error, got %v", err)
}
Expand Down Expand Up @@ -476,7 +476,7 @@ func TestUpdateInstrumentationConfigForWorkload_MultipleDefaultRules(t *testing.
},
}

err := updateInstrumentationConfigForWorkload(&ic, &ia, rules)
err := updateInstrumentationConfigForWorkload(&ic, &ia, rules, "service-name")
if err != nil {
t.Errorf("Expected nil error, got %v", err)
}
Expand Down Expand Up @@ -567,7 +567,7 @@ func TestUpdateInstrumentationConfigForWorkload_RuleForLibrary(t *testing.T) {
},
}

err := updateInstrumentationConfigForWorkload(&ic, &ia, rules)
err := updateInstrumentationConfigForWorkload(&ic, &ia, rules, "service-name")
if err != nil {
t.Errorf("Expected nil error, got %v", err)
}
Expand Down Expand Up @@ -630,7 +630,7 @@ func TestUpdateInstrumentationConfigForWorkload_LibraryRuleOtherLanguage(t *test
},
}

err := updateInstrumentationConfigForWorkload(&ic, &ia, rules)
err := updateInstrumentationConfigForWorkload(&ic, &ia, rules, "service-name")
if err != nil {
t.Errorf("Expected nil error, got %v", err)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"

odigosv1alpha1 "github.com/odigos-io/odigos/api/odigos/v1alpha1"
"github.com/odigos-io/odigos/k8sutils/pkg/workload"
apierrors "k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/runtime"
ctrl "sigs.k8s.io/controller-runtime"
Expand Down Expand Up @@ -33,6 +34,16 @@ func (r *InstrumentationRuleReconciler) Reconcile(ctx context.Context, req ctrl.
}

for _, ia := range instrumentedApplications.Items {
workloadName, workloadKind, err := workload.ExtractWorkloadInfoFromRuntimeObjectName(ia.Name)
if err != nil {
return ctrl.Result{}, err
}

serviceName, err := resolveServiceName(ctx, r.Client, workloadName, ia.Namespace, workloadKind)
if err != nil {
logger.Error(err, "error resolving service name", "workload", ia.Name)
continue
}
ic := &odigosv1alpha1.InstrumentationConfig{}
err = r.Client.Get(ctx, client.ObjectKey{Name: ia.Name, Namespace: ia.Namespace}, ic)
if err != nil {
Expand All @@ -44,7 +55,7 @@ func (r *InstrumentationRuleReconciler) Reconcile(ctx context.Context, req ctrl.
}
}

err := updateInstrumentationConfigForWorkload(ic, &ia, instrumentationRules)
err = updateInstrumentationConfigForWorkload(ic, &ia, instrumentationRules, serviceName)
if err != nil {
logger.Error(err, "error updating instrumentation config", "workload", ia.Name)
continue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (

odigosv1 "github.com/odigos-io/odigos/api/odigos/v1alpha1"
"github.com/odigos-io/odigos/k8sutils/pkg/utils"
"github.com/odigos-io/odigos/k8sutils/pkg/workload"
apierrors "k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/runtime"
ctrl "sigs.k8s.io/controller-runtime"
Expand All @@ -45,22 +46,31 @@ func (r *InstrumentedApplicationReconciler) Reconcile(ctx context.Context, req c
var ic odigosv1.InstrumentationConfig
err = r.Client.Get(ctx, req.NamespacedName, &ic)
if err != nil {
// each InstrumentedApplication should have a corresponding InstrumentationConfig
// but it might rarely happen that the InstrumentationConfig is deleted before the InstrumentedApplication
alonkeyval marked this conversation as resolved.
Show resolved Hide resolved
if apierrors.IsNotFound(err) {
logger.V(0).Info("Ignoring InstrumentedApplication without InstrumentationConfig", "runtime object name", ia.Name)
return ctrl.Result{}, nil
}
return ctrl.Result{}, err
}

workloadName, workloadKind, err := workload.ExtractWorkloadInfoFromRuntimeObjectName(ia.Name)
if err != nil {
return ctrl.Result{}, err
}

serviceName, err := resolveServiceName(ctx, r.Client, workloadName, ia.Namespace, workloadKind)
if err != nil {
logger.Error(err, "Failed to resolve service name", "workload", workloadName, "kind", workloadKind)
return ctrl.Result{}, err
}

instrumentationRules := &odigosv1.InstrumentationRuleList{}
err = r.Client.List(ctx, instrumentationRules)
if client.IgnoreNotFound(err) != nil {
return ctrl.Result{}, err
}

err = updateInstrumentationConfigForWorkload(&ic, &ia, instrumentationRules)
err = updateInstrumentationConfigForWorkload(&ic, &ia, instrumentationRules, serviceName)
if err != nil {
return ctrl.Result{}, err
}
Expand Down
81 changes: 81 additions & 0 deletions instrumentor/controllers/instrumentationconfig/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,49 @@ package instrumentationconfig

import (
odigosv1alpha1 "github.com/odigos-io/odigos/api/odigos/v1alpha1"
"github.com/odigos-io/odigos/common/consts"
appsv1 "k8s.io/api/apps/v1"
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/builder"
"sigs.k8s.io/controller-runtime/pkg/event"
"sigs.k8s.io/controller-runtime/pkg/predicate"
)

// workloadPodTemplatePredicate handles changes to workloads like Deployment, StatefulSet, and DaemonSet
alonkeyval marked this conversation as resolved.
Show resolved Hide resolved
type workloadPodTemplatePredicate struct {
predicate.Funcs
}

func (w workloadPodTemplatePredicate) Create(e event.CreateEvent) bool {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should be called workloadReportedNameAnnotationChanged

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

what is the naming convention for reconciler filters @blumamir

return true
alonkeyval marked this conversation as resolved.
Show resolved Hide resolved
}

func (w workloadPodTemplatePredicate) Update(e event.UpdateEvent) bool {
if e.ObjectOld == nil || e.ObjectNew == nil {
return false
}

// Compare annotations
oldAnnotations := e.ObjectOld.GetAnnotations()
newAnnotations := e.ObjectNew.GetAnnotations()

// Check if the `odigos.io/reported-name` annotation has changed
oldName := oldAnnotations[consts.OdigosReportedNameAnnotation]
newName := newAnnotations[consts.OdigosReportedNameAnnotation]

return oldName != newName
}

func (w workloadPodTemplatePredicate) Delete(e event.DeleteEvent) bool {
return false
}

func (w workloadPodTemplatePredicate) Generic(e event.GenericEvent) bool {
return false
}

func SetupWithManager(mgr ctrl.Manager) error {
// Watch InstrumentationRule
alonkeyval marked this conversation as resolved.
Show resolved Hide resolved
err := builder.
ControllerManagedBy(mgr).
Named("instrumentor-instrumentationconfig-instrumentationrule").
Expand All @@ -19,6 +57,7 @@ func SetupWithManager(mgr ctrl.Manager) error {
return err
}

// Watch InstrumentedApplication
err = builder.
ControllerManagedBy(mgr).
Named("instrumentor-instrumentationconfig-instrumentedapplication").
Expand All @@ -31,5 +70,47 @@ func SetupWithManager(mgr ctrl.Manager) error {
return err
}

// Watch for Deployment changes
err = builder.
ControllerManagedBy(mgr).
Named("instrumentor-instrumentationconfig-workloads-deployment").
For(&appsv1.Deployment{}).
WithEventFilter(workloadPodTemplatePredicate{}).
Complete(&WorkloadsReconciler{
Client: mgr.GetClient(),
Scheme: mgr.GetScheme(),
})
if err != nil {
return err
}

// Watch for StatefulSet changes
err = builder.
ControllerManagedBy(mgr).
Named("instrumentor-instrumentationconfig-workloads-statefulset").
For(&appsv1.StatefulSet{}).
WithEventFilter(workloadPodTemplatePredicate{}).
Complete(&WorkloadsReconciler{
Client: mgr.GetClient(),
Scheme: mgr.GetScheme(),
})
if err != nil {
return err
}

// Watch for DaemonSet changes
err = builder.
ControllerManagedBy(mgr).
Named("instrumentor-instrumentationconfig-workloads-daemonset").
For(&appsv1.DaemonSet{}).
WithEventFilter(workloadPodTemplatePredicate{}).
Complete(&WorkloadsReconciler{
Client: mgr.GetClient(),
Scheme: mgr.GetScheme(),
})
if err != nil {
return err
}

return nil
}
Loading
Loading