Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0050012
TypeCategorySeverityReproducibilityDate SubmittedLast Update
feature request[Openbravo ERP] A. Platformminorhave not tried2022-08-19 09:372022-08-25 16:52
ReporterAugustoMauchView Statuspublic 
Assigned ToAugustoMauch 
PrioritynormalResolutionfixedFixed in VersionPR22Q4
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0050012: Support logging slow datasource requests

DescriptionIt would be convenient to be able to log information about datasource requests where the time it takes to get the information from the database takes longer than a given configured number of milliseconds. This configuration should be defined by tab.

The logged line will be structured and must contain at least:
- The name of the tab whose information was being requested
- The query that was executed
- The number of milliseconds it took to execute the query
- The request parameters

The info must be logged in a way that allows that log to be written into a separate file other than openbravo.log
Steps To Reproduce-
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0140242)
hgbot (developer)
2022-08-19 09:52

Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/688 [^]
(0140396)
hgbot (developer)
2022-08-25 13:46

Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/688 [^]
(0140397)
hgbot (developer)
2022-08-25 13:46

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: 756e86fdf8c4bbc18c8269fa9fe92b0d9e9667b0
Author: Augusto Mauch <augusto.mauch@openbravo.com>
Date: 25-08-2022 11:45:47
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/756e86fdf8c4bbc18c8269fa9fe92b0d9e9667b0 [^]

Fixes ISSUE-50012: Enables logging info about slow datasource queries

---
A modules/org.openbravo.service.datasource/src-db/database/model/tables/OBSERDS_DS_OBS_CONFIG.xml
A modules/org.openbravo.service.json/src/org/openbravo/service/json/observability/logger/DatasourceObservabilityLogger.java
M modules/org.openbravo.service.datasource/src-db/database/sourcedata/AD_COLUMN.xml
M modules/org.openbravo.service.datasource/src-db/database/sourcedata/AD_ELEMENT.xml
M modules/org.openbravo.service.datasource/src-db/database/sourcedata/AD_FIELD.xml
M modules/org.openbravo.service.datasource/src-db/database/sourcedata/AD_MENU.xml
M modules/org.openbravo.service.datasource/src-db/database/sourcedata/AD_TAB.xml
M modules/org.openbravo.service.datasource/src-db/database/sourcedata/AD_TABLE.xml
M modules/org.openbravo.service.datasource/src-db/database/sourcedata/AD_TREENODE.xml
M modules/org.openbravo.service.datasource/src-db/database/sourcedata/AD_WINDOW.xml
M modules/org.openbravo.service.json/src/org/openbravo/service/json/DefaultJsonDataService.java
---
(0140400)
hgbot (developer)
2022-08-25 16:07

Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: 59275a0bd81a6183c62bd5b1cb16d13baea560bb
Author: Augusto Mauch <augusto.mauch@openbravo.com>
Date: 25-08-2022 14:07:14
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/59275a0bd81a6183c62bd5b1cb16d13baea560bb [^]

Related to ISSUE-50012: Prevents error when tabId is not provided in datasource request
---
M modules/org.openbravo.service.json/src/org/openbravo/service/json/observability/logger/DatasourceObservabilityLogger.java
---
(0140404)
hgbot (developer)
2022-08-25 16:52

Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: d8d47830e9e4b10e16aecca6e0d80193c2633f1f
Author: Stefan Huehner <stefan.huehner@openbravo.com>
Date: 25-08-2022 16:50:29
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/d8d47830e9e4b10e16aecca6e0d80193c2633f1f [^]

Related to ISSUE-50012: Hotfix last to fix compilation error.

Use commons-lang2 library we have in backoffice. Last commit accidentlly
used commona-lang3 (with different java package) we do not have as a jar
file in core.

---
M modules/org.openbravo.service.json/src/org/openbravo/service/json/observability/logger/DatasourceObservabilityLogger.java
---

- Issue History
Date Modified Username Field Change
2022-08-19 09:37 AugustoMauch New Issue
2022-08-19 09:37 AugustoMauch Assigned To => AugustoMauch
2022-08-19 09:37 AugustoMauch Modules => Core
2022-08-19 09:37 AugustoMauch Triggers an Emergency Pack => No
2022-08-19 09:38 AugustoMauch Description Updated View Revisions
2022-08-19 09:52 hgbot Note Added: 0140242
2022-08-25 13:46 hgbot Resolution open => fixed
2022-08-25 13:46 hgbot Status new => closed
2022-08-25 13:46 hgbot Note Added: 0140396
2022-08-25 13:46 hgbot Fixed in Version => PR22Q4
2022-08-25 13:46 hgbot Note Added: 0140397
2022-08-25 16:07 hgbot Note Added: 0140400
2022-08-25 16:52 hgbot Note Added: 0140404


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker