-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Labels
featureNew feature or requestNew feature or request
Description
Setting TRACE logging level for tech.ydb.yoj.repository.ydb.YdbRepositoryTransaction tends to produce overwhelmingly large log outputs.
We'd like to have more selective statement tracing, by e.g.
- Introducing a (
YdbRepository- orYdbRepositoryTransaction-level) filter by (tx name, statement type and parameters, statement result/error), - Encoding filterable information into logger name, e.g.:
tech.ydb.yoj.repository.ydb.YdbRepositoryTransaction.<tx name>.<statement type>.{success|error}. This will be fully backwards-compatible, because enabling ALL traces by setting TRACE level for thetech.ydb.yoj.repository.ydb.YdbRepositoryTransactiontop-level logger is still possible with this approach, - Introducing a
TxOptions- andTxManager-settable filter (just "trace/do not trace transactions created by thisTxManager") - Something else?
If we add new APIs for this functionality, they must be annotated as @ExperimentalApi and reference this issue.
Metadata
Metadata
Assignees
Labels
featureNew feature or requestNew feature or request