turn on sentry detailed tracing for task-data w/ burnettk
This commit is contained in:
parent
53b0c84068
commit
6632f9fde2
|
@ -1,5 +1,6 @@
|
||||||
"""__init__."""
|
"""__init__."""
|
||||||
import faulthandler
|
import faulthandler
|
||||||
|
import sys
|
||||||
import os
|
import os
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
@ -174,10 +175,9 @@ def traces_sampler(sampling_context: Any) -> Any:
|
||||||
|
|
||||||
# tasks_controller.task_submit
|
# tasks_controller.task_submit
|
||||||
# this is the current pain point as of 31 jan 2023.
|
# this is the current pain point as of 31 jan 2023.
|
||||||
if (
|
if path_info and (
|
||||||
path_info
|
(path_info.startswith("/v1.0/tasks/") and request_method == "PUT")
|
||||||
and path_info.startswith("/v1.0/tasks/")
|
or (path_info.startswith("/v1.0/task-data/") and request_method == "GET")
|
||||||
and request_method == "PUT"
|
|
||||||
):
|
):
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
|
@ -218,7 +218,7 @@ def configure_sentry(app: flask.app.Flask) -> None:
|
||||||
|
|
||||||
# profiling doesn't work on windows, because of an issue like https://github.com/nvdv/vprof/issues/62
|
# profiling doesn't work on windows, because of an issue like https://github.com/nvdv/vprof/issues/62
|
||||||
# but also we commented out profiling because it was causing segfaults (i guess it is marked experimental)
|
# but also we commented out profiling because it was causing segfaults (i guess it is marked experimental)
|
||||||
# profiles_sample_rate = 0 if sys.platform.startswith("win") else 1
|
profiles_sample_rate = 0 if sys.platform.startswith("win") else 1
|
||||||
|
|
||||||
sentry_sdk.init(
|
sentry_sdk.init(
|
||||||
dsn=app.config.get("SPIFFWORKFLOW_BACKEND_SENTRY_DSN"),
|
dsn=app.config.get("SPIFFWORKFLOW_BACKEND_SENTRY_DSN"),
|
||||||
|
@ -235,6 +235,6 @@ def configure_sentry(app: flask.app.Flask) -> None:
|
||||||
traces_sample_rate=float(sentry_traces_sample_rate),
|
traces_sample_rate=float(sentry_traces_sample_rate),
|
||||||
traces_sampler=traces_sampler,
|
traces_sampler=traces_sampler,
|
||||||
# The profiles_sample_rate setting is relative to the traces_sample_rate setting.
|
# The profiles_sample_rate setting is relative to the traces_sample_rate setting.
|
||||||
# _experiments={"profiles_sample_rate": profiles_sample_rate},
|
_experiments={"profiles_sample_rate": profiles_sample_rate},
|
||||||
before_send=before_send,
|
before_send=before_send,
|
||||||
)
|
)
|
||||||
|
|
|
@ -6,7 +6,6 @@ import PaginationForTable from '../components/PaginationForTable';
|
||||||
import ProcessBreadcrumb from '../components/ProcessBreadcrumb';
|
import ProcessBreadcrumb from '../components/ProcessBreadcrumb';
|
||||||
import {
|
import {
|
||||||
getPageInfoFromSearchParams,
|
getPageInfoFromSearchParams,
|
||||||
modifyProcessIdentifierForPathParam,
|
|
||||||
convertSecondsToFormattedDateTime,
|
convertSecondsToFormattedDateTime,
|
||||||
} from '../helpers';
|
} from '../helpers';
|
||||||
import HttpService from '../services/HttpService';
|
import HttpService from '../services/HttpService';
|
||||||
|
|
Loading…
Reference in New Issue