@gravitee/gamma-lib-observability 1.29.0 → 1.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/INTEGRATION.md +45 -55
- package/QUERYING.md +5 -5
- package/USAGE_GUIDE.md +178 -231
- package/dist/build-observability-base-url.d.ts +12 -12
- package/dist/build-observability-base-url.d.ts.map +1 -1
- package/dist/build-traces-base-url.d.ts +9 -18
- package/dist/build-traces-base-url.d.ts.map +1 -1
- package/dist/data-sources/http-data-source.d.ts.map +1 -1
- package/dist/data-sources/http-filter-source.d.ts.map +1 -1
- package/dist/data-sources/http-logs-source.d.ts +1 -13
- package/dist/data-sources/http-logs-source.d.ts.map +1 -1
- package/dist/data-sources/logs-data-source.d.ts +1 -1
- package/dist/data-sources/logs-data-source.d.ts.map +1 -1
- package/dist/filters/filter-provider.d.ts +6 -0
- package/dist/filters/filter-provider.d.ts.map +1 -1
- package/dist/hooks/query-keys.d.ts +1 -1
- package/dist/hooks/query-keys.d.ts.map +1 -1
- package/dist/hooks/use-log-detail-query.d.ts +1 -0
- package/dist/hooks/use-log-detail-query.d.ts.map +1 -1
- package/dist/hooks/use-logs-histogram-query.d.ts +0 -7
- package/dist/hooks/use-logs-histogram-query.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1460 -1498
- package/dist/logs/LogsExplorerPage.d.ts +1 -7
- package/dist/logs/LogsExplorerPage.d.ts.map +1 -1
- package/dist/logs/detail/components/LogDetailContent.d.ts.map +1 -1
- package/dist/logs/detail/components/LogDetailContextChart.d.ts +1 -3
- package/dist/logs/detail/components/LogDetailContextChart.d.ts.map +1 -1
- package/dist/logs/detail/components/LogDetailDrawer.d.ts +2 -1
- package/dist/logs/detail/components/LogDetailDrawer.d.ts.map +1 -1
- package/dist/logs/detail/components/LogDetailPage.d.ts.map +1 -1
- package/dist/logs/detail/types.d.ts +0 -7
- package/dist/logs/detail/types.d.ts.map +1 -1
- package/dist/logs/index.d.ts +0 -2
- package/dist/logs/index.d.ts.map +1 -1
- package/dist/routing/LogsRouteElement.d.ts +3 -3
- package/dist/routing/LogsRouteElement.d.ts.map +1 -1
- package/dist/routing/ObservabilityRoutes.d.ts +2 -1
- package/dist/routing/ObservabilityRoutes.d.ts.map +1 -1
- package/dist/routing/types.d.ts +47 -16
- package/dist/routing/types.d.ts.map +1 -1
- package/dist/styles/observability.css +1 -1
- package/package.json +5 -5
- package/dist/logs/analytics-filter-mapping.d.ts +0 -35
- package/dist/logs/analytics-filter-mapping.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gravitee/gamma-lib-observability",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.30.0",
|
|
4
4
|
"description": "Shared observability library for Gamma modules — dashboards, logs, tracing UI components and integration with business rules.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"packageManager": "yarn@4.14.1",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"*.{json,css,md,mdx,yml}": "prettier --write"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@gravitee/graphene-charts": "^2.
|
|
53
|
-
"@gravitee/graphene-core": "^2.
|
|
52
|
+
"@gravitee/graphene-charts": "^2.49.0",
|
|
53
|
+
"@gravitee/graphene-core": "^2.49.0",
|
|
54
54
|
"@tanstack/react-query": "^5.0.0",
|
|
55
55
|
"@xyflow/react": "^12.0.0",
|
|
56
56
|
"react": "^19.0.0",
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@commitlint/cli": "21.0.1",
|
|
72
72
|
"@commitlint/config-conventional": "21.0.1",
|
|
73
|
-
"@gravitee/graphene-charts": "2.
|
|
74
|
-
"@gravitee/graphene-core": "^2.
|
|
73
|
+
"@gravitee/graphene-charts": "^2.49.0",
|
|
74
|
+
"@gravitee/graphene-core": "^2.49.0",
|
|
75
75
|
"@semantic-release/changelog": "6.0.3",
|
|
76
76
|
"@semantic-release/commit-analyzer": "13.0.1",
|
|
77
77
|
"@semantic-release/git": "10.0.1",
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { FilterCondition } from '../types/domain';
|
|
2
|
-
/**
|
|
3
|
-
* Reconciles the logs-table filter vocabulary with the analytics (histogram)
|
|
4
|
-
* vocabulary. The logs search endpoint (`/logs/search`) scopes by `ENTRYPOINT`
|
|
5
|
-
* (`llm-proxy`, `mcp-proxy`, …) while the analytics endpoint
|
|
6
|
-
* (`/analytics/time-series`) scopes by `API_TYPE` (`LLM`, `MCP`, …). The two
|
|
7
|
-
* endpoints reject each other's field, so a consumer with this split would
|
|
8
|
-
* otherwise need a custom `MetricsDataSource` wrapper.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```ts
|
|
12
|
-
* const mapping: LogsAnalyticsFilterMapping = {
|
|
13
|
-
* fieldMap: { ENTRYPOINT: 'API_TYPE' },
|
|
14
|
-
* valueMap: { API_TYPE: { 'llm-proxy': 'LLM', 'mcp-proxy': 'MCP', mcp: 'MCP', 'http-proxy': 'HTTP_PROXY' } },
|
|
15
|
-
* };
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
|
-
export interface LogsAnalyticsFilterMapping {
|
|
19
|
-
/** Renames a logs-table filter field to its analytics equivalent. e.g. `{ ENTRYPOINT: 'API_TYPE' }`. */
|
|
20
|
-
fieldMap?: Record<string, string>;
|
|
21
|
-
/**
|
|
22
|
-
* Per-field value remapping applied after `fieldMap`, keyed by the TARGET
|
|
23
|
-
* (analytics) field name. Values without a mapping entry are kept as-is.
|
|
24
|
-
*/
|
|
25
|
-
valueMap?: Record<string, Record<string, string>>;
|
|
26
|
-
/** Logs-table filter fields with no analytics equivalent; dropped from the analytics request. */
|
|
27
|
-
dropFields?: readonly string[];
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Transforms logs-table filters into the analytics vocabulary using the
|
|
31
|
-
* supplied {@link LogsAnalyticsFilterMapping}. Returns a new array; the input
|
|
32
|
-
* is never mutated. With no mapping the filters are returned unchanged.
|
|
33
|
-
*/
|
|
34
|
-
export declare function mapAnalyticsFilters(filters: readonly FilterCondition[] | undefined, mapping: LogsAnalyticsFilterMapping | undefined): FilterCondition[];
|
|
35
|
-
//# sourceMappingURL=analytics-filter-mapping.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"analytics-filter-mapping.d.ts","sourceRoot":"","sources":["../../src/logs/analytics-filter-mapping.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEvD;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,0BAA0B;IACzC,wGAAwG;IACxG,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAClD,iGAAiG;IACjG,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAChC;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,SAAS,eAAe,EAAE,GAAG,SAAS,EAC/C,OAAO,EAAE,0BAA0B,GAAG,SAAS,GAC9C,eAAe,EAAE,CAsBnB"}
|