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

Develop #192

Open
wants to merge 316 commits into
base: main
Choose a base branch
from
Open
Changes from 2 commits
Commits
Show all changes
316 commits
Select commit Hold shift + click to select a range
fa59551
Merge pull request #139 from rdkcentral/james-dev
lstruman Apr 12, 2024
84ff8a5
add bitmaps for wifimotionsettings and xmspeedboost
lstruman Apr 19, 2024
6e49569
Merge pull request #140 from rdkcentral/james-dev
lstruman Apr 19, 2024
02765e2
add support of rfc subdoc bitmap
lstruman Mar 19, 2024
437c523
Add support for defaultrfc bitmap
lstruman Apr 12, 2024
8720d84
add bitmaps for wifimotionsettings and xmspeedboost
lstruman Apr 19, 2024
8c98634
Merge pull request #141 from rdkcentral/cherrypick-xmspeedboost-bitmap
lstruman Apr 26, 2024
6b89ce5
do urlencode for xconf telemetry url and handle 400 response properly
lstruman May 10, 2024
523bc12
Merge pull request #142 from rdkcentral/james-dev
lstruman May 10, 2024
b2e372a
do urlencode for xconf telemetry url and handle 400 response properly
lstruman May 10, 2024
10dc1f2
Merge pull request #143 from rdkcentral/cherrypick-xconf-urlencode
lstruman May 10, 2024
cc31901
Opentelemetry tracing option added
rvsubbu May 14, 2024
f38d519
Merge pull request #146 from rvsubbu/otel
lstruman May 15, 2024
798c740
merge developn-1 branch and resolve a conflict
lstruman May 28, 2024
90fb84d
Merge pull request #147 from rdkcentral/james-work
lstruman May 28, 2024
c4796b7
Merge remote-tracking branch 'origin/develop' into james-dev
lstruman May 28, 2024
d3d36c8
Merge remote-tracking branch 'origin/developn-1' into james-dev
lstruman May 29, 2024
315f2d8
Fix a bug that poke api returns 500 if webpa returns 403
lstruman Jun 2, 2024
de4dc0c
Merge pull request #148 from rdkcentral/james-dev
lstruman Jun 2, 2024
af7d8c8
cherrypick a poke403 handling fix and resolve conflicts
lstruman Jun 2, 2024
99a0a4e
Merge pull request #149 from rdkcentral/cherrypick-poke403
lstruman Jun 7, 2024
123411a
Otel Changes
rvsubbu Jun 13, 2024
7fdcc9b
Otel changes second iteration
rvsubbu Jun 13, 2024
e74912d
Code review feedback plus minor simplifications
rvsubbu Jun 13, 2024
e3760ba
Merge branch 'develop' into otel
rvsubbu Jun 13, 2024
067175c
Merge pull request #150 from rvsubbu/otel
lstruman Jun 13, 2024
b0f9841
handle corrupted encrypted blobs
lstruman Jun 15, 2024
a3c5575
Merge pull request #151 from rdkcentral/james-dev
lstruman Jun 15, 2024
6062b63
Cherrypick of otel changes
rvsubbu Jun 17, 2024
191913b
Merge remote-tracking branch 'upstream/developn-1' into developn-1
rvsubbu Jun 17, 2024
0c3c104
Merge pull request #152 from rvsubbu/developn-1
lstruman Jun 17, 2024
468a772
Feedback: Use the API instead of "oswebconfig_poke_handler" as the sp…
rvsubbu Jun 17, 2024
844177e
Merge pull request #153 from rvsubbu/otel
lstruman Jun 17, 2024
d3c8339
Ticket to be created
rvsubbu Jun 18, 2024
1c125ef
Merge pull request #154 from rvsubbu/otel
lstruman Jun 18, 2024
ef2702a
Narrower Tracing changes: Add a child span only for webpa poke patch …
rvsubbu Jun 19, 2024
117a792
Merge pull request #155 from rvsubbu/otel
lstruman Jun 19, 2024
e015833
span name err fixed and span name improved
rvsubbu Jun 20, 2024
65823a9
Merge pull request #156 from rvsubbu/otel
lstruman Jun 20, 2024
9c1a0e0
otel: Add method and status code explicitly as attributese
rvsubbu Jun 20, 2024
c90b48d
Code review feedback
rvsubbu Jun 21, 2024
6aea8b5
Merge pull request #157 from rvsubbu/otel
lstruman Jun 21, 2024
b50ac11
Revert "Otel: Explicity add method and status_code as attributes"
rvsubbu Jun 21, 2024
fb4c66e
Merge pull request #158 from rvsubbu/revert-157-otel
lstruman Jun 21, 2024
61348f5
otel cherrypick
rvsubbu Jun 21, 2024
eb49f18
Merge pull request #159 from rvsubbu/developn-1
lstruman Jun 21, 2024
4af72cf
otel - http.method is part of span name instead of a separate attribute
rvsubbu Jun 21, 2024
be2127c
Merge pull request #160 from rvsubbu/otel
lstruman Jun 21, 2024
d075d58
otel: order of method + path template switched in span name
rvsubbu Jun 21, 2024
be4cc7d
Merge pull request #161 from rvsubbu/otel
lstruman Jun 21, 2024
d75f359
Cherrypick of latest otel changes
rvsubbu Jun 21, 2024
6209b90
Merge pull request #162 from rvsubbu/developn-1
lstruman Jun 21, 2024
8f603a6
cherrypick a fix for corrupted blob handling and resolve conflicts
lstruman Jun 15, 2024
36c16ef
Merge pull request #163 from rdkcentral/cherrypick-corrupted-blob
lstruman Jun 21, 2024
dac69fe
handle non-ascii characters in headers from devices
lstruman Jun 22, 2024
e386c3e
Merge pull request #164 from rdkcentral/james-dev
lstruman Jun 22, 2024
1e089b6
fix a bug that updated_time was changed after calling /upstream even …
lstruman Jun 24, 2024
4975775
Merge pull request #165 from rdkcentral/james-dev
lstruman Jun 24, 2024
e29945f
XPC-21774: Populate method and route attributes in otel
rvsubbu Jun 26, 2024
fcf04e2
Merge pull request #166 from rvsubbu/otel
lstruman Jun 26, 2024
ffab4a1
cherrypick and resolve conflicts
lstruman Jun 22, 2024
0a778c7
fix a bug that updated_time was changed after calling /upstream even …
lstruman Jun 24, 2024
e51a882
Merge pull request #167 from rdkcentral/cherrypick-nonascii-updated_time
lstruman Jun 26, 2024
cf18789
otel cherrypick for method name population
rvsubbu Jun 26, 2024
f35fee8
Merge pull request #168 from rvsubbu/developn-1
lstruman Jun 26, 2024
c2ead08
Git merge err, some lines were missed
rvsubbu Jun 26, 2024
faab295
Merge pull request #169 from rvsubbu/developn-1
lstruman Jun 26, 2024
205d67a
Skip updating subdocs if instructed by upstream response
lstruman Jun 28, 2024
0dcaab5
Merge pull request #170 from rdkcentral/james-dev
lstruman Jun 28, 2024
72353ce
Skip updating subdocs if instructed by upstream response
lstruman Jun 28, 2024
5e340ab
Merge pull request #171 from rdkcentral/cherrypick-skip-dbupdate
lstruman Jun 28, 2024
de3eee0
XPC-22084: Add operation-name, http.url, http.url_details attributes …
rvsubbu Jun 29, 2024
bd46947
Merge pull request #172 from rvsubbu/otel
lstruman Jun 29, 2024
df09776
Add the capability to forward kafka messages
lstruman Jun 29, 2024
687961e
Merge pull request #173 from rdkcentral/james-dev
lstruman Jun 29, 2024
2a744ae
otel Missed a line
rvsubbu Jul 1, 2024
abd31e1
Merge pull request #174 from rvsubbu/otel
lstruman Jul 1, 2024
7b1c5fe
forward notifications on conditions
lstruman Jul 3, 2024
12d99a5
Merge pull request #176 from rdkcentral/james-dev
lstruman Jul 3, 2024
96ae446
fix a typo in sample config
lstruman Jul 3, 2024
b7a4c12
Merge pull request #177 from rdkcentral/james-dev
lstruman Jul 3, 2024
3fc8f95
populate error graph in DD
rvsubbu Jul 3, 2024
af53eb6
Merge pull request #175 from rvsubbu/otel
lstruman Jul 3, 2024
13fe5c5
handle ill-formatted kafka messages in forwarding
lstruman Jul 3, 2024
1994893
Merge pull request #178 from rdkcentral/james-dev
lstruman Jul 3, 2024
84c399e
otel cherrypick for populating err graphs in DD
rvsubbu Jul 3, 2024
f18ab70
Merge pull request #179 from rvsubbu/developn-1
lstruman Jul 3, 2024
c7a9e82
Add the capability to forward kafka messages
lstruman Jun 29, 2024
74652a9
cherrypick and resolve conflicts
lstruman Jul 3, 2024
e579805
fix a typo in sample config
lstruman Jul 3, 2024
2ee6174
handle ill-formatted kafka messages in forwarding
lstruman Jul 3, 2024
ad0640b
Merge pull request #180 from rdkcentral/cherrypick-forward-notifications
lstruman Jul 15, 2024
c741d32
fix a bug that forwarded kafka messages were not logged properly
lstruman Jul 16, 2024
19df5e0
Merge pull request #181 from rdkcentral/james-dev
lstruman Jul 16, 2024
1f6c9e3
fix a bug that forwarded kafka messages were not logged properly
lstruman Jul 16, 2024
248a21b
Merge pull request #182 from rdkcentral/cherrypick-forward-notificati…
lstruman Jul 16, 2024
37e8626
Forward webconfig notifications without filtering
lstruman Jul 19, 2024
614a29e
Merge pull request #183 from rdkcentral/james-dev
lstruman Jul 19, 2024
510eeca
Forward webconfig notifications without filtering
lstruman Jul 19, 2024
207ac02
Merge pull request #184 from rdkcentral/cherrypick-forward-notificati…
lstruman Jul 20, 2024
2da3b45
merge branch developn-1 and resolve conflicts
lstruman Jul 26, 2024
458249e
Merge pull request #185 from rdkcentral/james-dev
lstruman Jul 26, 2024
40ae4a1
generate notifications if states are corrected by versions from devices
lstruman Jul 31, 2024
c7cc27d
Merge pull request #186 from rdkcentral/james-dev
lstruman Jul 31, 2024
658c0ad
revise bitmap test codes
lstruman Aug 3, 2024
fbf12fa
Merge pull request #187 from rdkcentral/james-dev
lstruman Aug 3, 2024
3c32f12
generate notifications if states are corrected by versions from devices
lstruman Jul 31, 2024
58da1ff
Merge pull request #188 from rdkcentral/cherrypick-state-correction-new
lstruman Aug 6, 2024
423ac08
Return 504 if xconf GET returns timeout/context_cancellation
lstruman Aug 7, 2024
195aca5
Merge pull request #189 from rdkcentral/james-dev
lstruman Aug 7, 2024
3b21607
Merge pull request #190 from rdkcentral/develop
lstruman Aug 7, 2024
d688af3
Merge remote-tracking branch 'origin/main' into develop
lstruman Aug 13, 2024
1ad7969
Add debug loggings for 403 error analysis
lstruman Sep 3, 2024
7b43ee6
Merge pull request #193 from rdkcentral/james-dev
lstruman Sep 3, 2024
367450d
Add debug loggings for 403 error analysis
lstruman Sep 3, 2024
e920885
Merge pull request #194 from rdkcentral/james-dev
lstruman Sep 3, 2024
7e2b44c
Add debug loggings for 403 error analysis
lstruman Sep 5, 2024
e9d9493
Merge pull request #195 from rdkcentral/james-dev
lstruman Sep 5, 2024
3a24698
Add debug loggings for 403 error analysis
lstruman Sep 3, 2024
820b678
Add debug loggings for 403 error analysis
lstruman Sep 3, 2024
98e9e7d
Add debug loggings for 403 error analysis
lstruman Sep 5, 2024
4e9fd6b
Merge pull request #196 from rdkcentral/cherrypick-log403
lstruman Sep 10, 2024
bdd12bb
return 404 for NONE-REBOOT without subdocs
lstruman Sep 10, 2024
616e068
Merge pull request #197 from rdkcentral/james-dev
lstruman Sep 10, 2024
ec1f5b7
return 404 for NONE-REBOOT without subdocs
lstruman Sep 10, 2024
39ac9d0
Merge pull request #198 from rdkcentral/cherrypick-none-reboot-404
lstruman Sep 11, 2024
d165d6d
Reduce unnecessary upstream calls when no meta headers change
lstruman Sep 17, 2024
900eb75
Merge pull request #199 from rdkcentral/james-dev
lstruman Sep 17, 2024
ad941aa
add a flag to control the enabling of sarama logger
lstruman Sep 18, 2024
d4fba5e
Merge pull request #200 from rdkcentral/james-dev
lstruman Sep 18, 2024
016b28b
Merge pull request #201 from rdkcentral/develop
lstruman Sep 19, 2024
0c4814c
change frequently used headers from literals to consts
lstruman Sep 20, 2024
a879e3b
Merge pull request #202 from rdkcentral/james-dev
lstruman Sep 20, 2024
4232990
ix a bug that status=0 was logged when the last subdoc was deleted
lstruman Oct 1, 2024
34c986f
Merge pull request #203 from rdkcentral/james-dev
lstruman Oct 1, 2024
b766d8c
log kafka async producer errors
lstruman Oct 4, 2024
71610e8
Merge pull request #204 from rdkcentral/james-dev
lstruman Oct 4, 2024
da5879c
ix a bug that status=0 was logged when the last subdoc was deleted
lstruman Oct 1, 2024
217d7cf
log kafka async producer errors
lstruman Oct 4, 2024
07a4bb1
Merge pull request #205 from rdkcentral/cherrypick-async-producer-log…
lstruman Oct 8, 2024
7ff2a1f
handle 202 returned by webpa poke
lstruman Oct 9, 2024
8a6c59d
Merge pull request #206 from rdkcentral/james-dev
lstruman Oct 9, 2024
261b2e5
update states only when the version in the notification matches the v…
lstruman Oct 10, 2024
987a346
Merge pull request #207 from rdkcentral/james-dev
lstruman Oct 10, 2024
9108c39
change the poke 204 condition to all deployed
lstruman Oct 12, 2024
77eeb94
Merge pull request #208 from rdkcentral/james-dev
lstruman Oct 12, 2024
a0a7c01
fix a bug that version matched subdocs are not backfilled from upstream
lstruman Oct 16, 2024
0735172
Merge pull request #209 from rdkcentral/james-dev
lstruman Oct 16, 2024
5f819c0
update states only when the version in the notification matches the v…
lstruman Oct 10, 2024
b83d57a
change the poke 204 condition to all deployed
lstruman Oct 12, 2024
872d747
fix a bug that version matched subdocs are not backfilled from upstream
lstruman Oct 16, 2024
a13d53a
Merge pull request #210 from rdkcentral/cherrypick-2024-oct-18
lstruman Oct 19, 2024
132e15a
change frequently used headers from literals to consts
lstruman Sep 20, 2024
a1dc8d2
Merge pull request #211 from rdkcentral/cherrypick-2024-oct-18
lstruman Oct 19, 2024
04a2dc4
check nil conditions for kafka async producer errors
lstruman Oct 19, 2024
fe85cfa
Merge pull request #212 from rdkcentral/james-dev
lstruman Oct 19, 2024
63e902b
check the nil condition for kafka async producer successes
lstruman Oct 21, 2024
1da11e5
Merge pull request #213 from rdkcentral/james-dev
lstruman Oct 21, 2024
bef8fc7
check nil conditions for kafka async producer errors
lstruman Oct 19, 2024
9bd2c8f
check the nil condition for kafka async producer successes
lstruman Oct 21, 2024
d407369
Merge pull request #214 from rdkcentral/cherrypick-async-producer-res…
lstruman Oct 22, 2024
b254873
add bitmap supprot for subdoc webui
lstruman Oct 22, 2024
9353e9b
Merge pull request #215 from rdkcentral/james-dev
lstruman Oct 22, 2024
1ae6e58
fix a bug that 500 was returned when the reference doc was not found
lstruman Oct 26, 2024
cdda9af
Merge pull request #216 from rdkcentral/james-dev
lstruman Oct 26, 2024
cbca2d6
handle 202 returned by webpa poke
lstruman Oct 9, 2024
7c09ed9
Merge pull request #217 from rdkcentral/cherrypick-poke-202
lstruman Oct 30, 2024
bf83753
change the updated_time as usual even if state=1
lstruman Oct 30, 2024
120e187
Merge pull request #218 from rdkcentral/james-dev
lstruman Oct 30, 2024
3845b7d
return 409 if the root_document is locked
lstruman Nov 1, 2024
a9c48c6
Merge pull request #219 from rdkcentral/james-dev
lstruman Nov 1, 2024
a01d3bb
change the updated_time as usual even if state=1
lstruman Oct 30, 2024
459d72d
Merge pull request #220 from rdkcentral/cherrypick-state1-upddate
lstruman Nov 4, 2024
c75288f
add a control flag for root_document locking
lstruman Nov 4, 2024
f8f5899
Merge pull request #221 from rdkcentral/james-dev
lstruman Nov 4, 2024
f8a86a2
fix a bug that 500 was returned when the reference doc was not found
lstruman Oct 26, 2024
6cd321e
Merge pull request #222 from rdkcentral/cherrypick-noreference-handling
lstruman Nov 8, 2024
93a333f
return 409 if the root_document is locked
lstruman Nov 1, 2024
6297aa0
add a control flag for root_document locking
lstruman Nov 4, 2024
a1de683
Merge pull request #223 from rdkcentral/cherrypick-lock-root-document
lstruman Nov 8, 2024
b5b428c
add bitmap supprot for subdoc webui
lstruman Oct 22, 2024
ce84f32
Merge pull request #224 from rdkcentral/cherrypick-webui-bitmap
lstruman Nov 12, 2024
33f6466
add an option to read profiles from upstream
lstruman Nov 14, 2024
eb403b2
Merge pull request #225 from rdkcentral/james-dev
lstruman Nov 14, 2024
b289cbe
fix a bug that error_code and error_details were not cleanup during s…
lstruman Nov 14, 2024
816628b
Merge pull request #226 from rdkcentral/james-dev
lstruman Nov 14, 2024
e037db0
fix a bug that error_code and error_details were not cleanup during s…
lstruman Nov 14, 2024
bf3d308
Merge pull request #227 from rdkcentral/cherrypick-errorcodes-fix
lstruman Nov 15, 2024
e00d70e
enforce strict format in device GET route
lstruman Nov 16, 2024
86c2081
Merge pull request #228 from rdkcentral/james-dev
lstruman Nov 16, 2024
f4b217e
add token trust validation
lstruman Nov 17, 2024
903611d
Merge pull request #229 from rdkcentral/james-dev
lstruman Nov 17, 2024
07e4e16
cherrypick strict format check and resolve conflicts
lstruman Nov 16, 2024
f0daec5
Merge pull request #230 from rdkcentral/cherrypick-strict-format-check
lstruman Nov 18, 2024
ddbbb08
accept non bitmap subdocs when the validator is enabled during device…
lstruman Nov 20, 2024
f2d3450
Merge pull request #231 from rdkcentral/james-dev
lstruman Nov 20, 2024
7ccaf8c
cherrypick non bitmap validation and resolve conflicts
lstruman Nov 20, 2024
3aea3ad
Merge pull request #232 from rdkcentral/cherrypick-strict-format-chec…
lstruman Nov 20, 2024
9a1c893
cherrypick the feature to validate token trust value and resolve conf…
lstruman Nov 17, 2024
d6ff5a9
Merge pull request #233 from rdkcentral/cherrypick-token-trust-validaton
lstruman Nov 21, 2024
969249e
log details for token errors
lstruman Nov 26, 2024
d3a7823
Merge pull request #234 from rdkcentral/james-dev
lstruman Nov 26, 2024
8200e8d
log details for token errors
lstruman Nov 26, 2024
9d9ca15
Merge pull request #235 from rdkcentral/cherrypick-log-token-err
lstruman Nov 27, 2024
884fff2
cherrypick upstream profiles and merge conflicts
lstruman Nov 14, 2024
f3032de
Merge pull request #236 from rdkcentral/cherrypick-upstream-profiles
lstruman Dec 4, 2024
eb7872f
Add support for poke root and telemetry together
lstruman Dec 4, 2024
22dafa8
Merge pull request #237 from rdkcentral/james-dev
lstruman Dec 4, 2024
7e32cdd
set updated_time in the case of state correction
lstruman Dec 10, 2024
1801e4e
Merge pull request #238 from rdkcentral/james-dev
lstruman Dec 10, 2024
bb27227
set updated_time in the case of state correction
lstruman Dec 10, 2024
c4bb805
Merge pull request #239 from rdkcentral/cherrypick-bugfix-updated_time
lstruman Dec 11, 2024
6b6de0b
propagate headers for tracing
lstruman Dec 12, 2024
022e3ce
Merge pull request #240 from rdkcentral/james-dev
lstruman Dec 12, 2024
9b69306
remove otel span codes
lstruman Dec 13, 2024
5fccaa9
Merge pull request #241 from rdkcentral/james-dev
lstruman Dec 13, 2024
e454080
restore otel codes
lstruman Dec 18, 2024
24a94ce
Merge pull request #242 from rdkcentral/james-dev
lstruman Dec 18, 2024
751143d
add back a missed file
lstruman Dec 18, 2024
a0b66d0
Merge pull request #243 from rdkcentral/james-dev
lstruman Dec 18, 2024
6bea1ad
handle tracing propagation
lstruman Dec 20, 2024
127cee1
add back calling otelshutdown
lstruman Dec 20, 2024
13a9c62
roll back go.mod to use 1.21
lstruman Dec 20, 2024
2d72e45
Merge pull request #244 from rdkcentral/james-dev
lstruman Dec 20, 2024
a5984fb
change the poke keyword from primary to root
lstruman Dec 21, 2024
29afd6e
Merge pull request #245 from rdkcentral/james-dev
lstruman Dec 21, 2024
bf96308
Set Otel Span attribute for x-cl-expt
rvsubbu Dec 23, 2024
656f401
Merge pull request #246 from rvsubbu/rv_dev
lstruman Dec 23, 2024
67aa9fb
merge n-1 and resolve conflicts
lstruman Dec 24, 2024
a773ed3
Merge pull request #248 from rdkcentral/james-dev
lstruman Dec 24, 2024
228e911
Migrate/adapt/rewrite tracing
rvsubbu Dec 30, 2024
0e5f43a
Remove all homegrown algorithm code as it is never going to be used
rvsubbu Dec 30, 2024
2bff04a
Merge pull request #250 from rvsubbu/rv_dev
lstruman Dec 31, 2024
4905893
case diffs in env var e.g. use site_color instead of SITE_COLOR
rvsubbu Jan 2, 2025
1beee4a
Merge pull request #252 from rvsubbu/rv_dev
lstruman Jan 3, 2025
a50cf7f
Typo
rvsubbu Jan 3, 2025
777b1d3
Merge pull request #253 from rvsubbu/rv_dev
lstruman Jan 6, 2025
dbdee27
Standardize logs - use "message" instead of "msg"
rvsubbu Jan 7, 2025
d4b65a0
Merge pull request #255 from rvsubbu/rv_dev
lstruman Jan 7, 2025
b6bdcf2
fix a bug that new spanid are not included in the traceparent of outg…
lstruman Jan 8, 2025
9d61ad7
Merge pull request #256 from rdkcentral/james-dev
lstruman Jan 8, 2025
e9e969a
Make external url templates configurable
lstruman Jan 13, 2025
0e84777
Merge pull request #258 from rdkcentral/james-dev
lstruman Jan 13, 2025
51f619e
tracing codes rearranged
lstruman Jan 15, 2025
13e8d5c
remove unused func args
lstruman Jan 15, 2025
087035a
clean up unused contexts
lstruman Jan 15, 2025
719198d
clean up used contexts cont.
lstruman Jan 15, 2025
3bf15ca
small changes in tracing context functions
lstruman Jan 16, 2025
85b9308
small changes based on review
lstruman Jan 20, 2025
6a819ca
Merge pull request #260 from rdkcentral/james-dev
lstruman Jan 22, 2025
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
9 changes: 7 additions & 2 deletions tracing/tracer.go
Original file line number Diff line number Diff line change
@@ -5,6 +5,7 @@ import (
"os"

"github.com/go-akka/configuration"
log "github.com/sirupsen/logrus"

oteltrace "go.opentelemetry.io/otel/trace"
otelpropagation "go.opentelemetry.io/otel/propagation"
@@ -70,13 +71,17 @@ func initAppData(conf *configuration.Config) {

// Env vars
xpcTracer.appEnv = "dev"
siteColor := os.Getenv("SITE_COLOR")
siteColor := os.Getenv("site_color")
if strings.EqualFold(siteColor, "yellow") {
xpcTracer.appEnv = "staging"
} else if strings.EqualFold(siteColor, "green") {
xpcTracer.appEnv = "prod"
}
xpcTracer.rgn = os.Getenv("SITE_REGION")
xpcTracer.rgn = os.Getenv("site_region")
if xpcTracer.rgn == "" {
xpcTracer.rgn = os.Getenv("site_region_name")
}
log.Debugf("site_color = %f, env = %s, rgn = %s", siteColor, xpcTracer.appEnv, xpcTracer.rgn)
}

func GetServiceName() string {