- changed sentry tags - changed asayer_session_id to openReplaySessionToken - EE full merge
17 lines
380 B
Python
17 lines
380 B
Python
import requests
|
|
|
|
from chalicelib.utils.helper import environ
|
|
|
|
|
|
def get_original_trace(key, positions):
|
|
payload = {
|
|
"key": key,
|
|
"positions": positions,
|
|
"padding": 5,
|
|
"bucket": environ['sourcemaps_bucket']
|
|
}
|
|
r = requests.post(environ["sourcemaps_reader"], json=payload)
|
|
if r.status_code != 200:
|
|
return {}
|
|
|
|
return r.json()
|