refactor(chalice): use format instead of % for sourcemaps-url (#2128)

This commit is contained in:
Kraiem Taha Yassine 2024-04-24 15:05:57 +02:00 committed by GitHub
parent 29ee1cbb1f
commit 76c3ed9966
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View file

@ -6,9 +6,9 @@ SMR_URL = config("sourcemaps_reader")
if '%s' in SMR_URL: if '%s' in SMR_URL:
if config("SMR_KEY", default=None) is not None: if config("SMR_KEY", default=None) is not None:
SMR_URL = SMR_URL % config("SMR_KEY") SMR_URL = SMR_URL.format(config("SMR_KEY"))
else: else:
SMR_URL = SMR_URL % "smr" SMR_URL = SMR_URL.format("smr")
def get_original_trace(key, positions, is_url=False): def get_original_trace(key, positions, is_url=False):

View file

@ -57,6 +57,6 @@ sessions_bucket=mobs
sessions_region=us-east-1 sessions_region=us-east-1
SITE_URL= SITE_URL=
sourcemaps_bucket=sourcemaps sourcemaps_bucket=sourcemaps
sourcemaps_reader=http://sourcemapreader-openreplay.app.svc.cluster.local:9000/sourcemaps/%s/sourcemaps sourcemaps_reader=http://sourcemapreader-openreplay.app.svc.cluster.local:9000/sourcemaps/{}/sourcemaps
STAGE=default-foss STAGE=default-foss
TZ=UTC TZ=UTC

View file

@ -77,6 +77,6 @@ sessions_bucket=mobs
sessions_region=us-east-1 sessions_region=us-east-1
SITE_URL= SITE_URL=
sourcemaps_bucket=sourcemaps sourcemaps_bucket=sourcemaps
sourcemaps_reader=http://sourcemapreader-openreplay.app.svc.cluster.local:9000/sourcemaps/%s/sourcemaps sourcemaps_reader=http://sourcemapreader-openreplay.app.svc.cluster.local:9000/sourcemaps/{}/sourcemaps
TRACE_PERIOD=300 TRACE_PERIOD=300
TZ=UTC TZ=UTC