@libp2p/opentelemetry-metrics 2.0.16 → 2.0.18-20bfcb3f9
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/dist/index.min.js +1 -1
- package/dist/index.min.js.map +3 -3
- package/dist/src/index.js +9 -9
- package/package.json +6 -5
- package/src/index.ts +9 -9
- package/dist/typedoc-urls.json +0 -8
package/dist/src/index.js
CHANGED
|
@@ -35,15 +35,15 @@
|
|
|
35
35
|
import { InvalidParametersError, serviceCapabilities } from '@libp2p/interface';
|
|
36
36
|
import { isAsyncGenerator, isGenerator, isPromise } from '@libp2p/utils';
|
|
37
37
|
import { trace, metrics, context, SpanStatusCode } from '@opentelemetry/api';
|
|
38
|
-
import { OpenTelemetryCounterGroup } from
|
|
39
|
-
import { OpenTelemetryCounter } from
|
|
40
|
-
import { OpenTelemetryHistogramGroup } from
|
|
41
|
-
import { OpenTelemetryHistogram } from
|
|
42
|
-
import { OpenTelemetryMetricGroup } from
|
|
43
|
-
import { OpenTelemetryMetric } from
|
|
44
|
-
import { OpenTelemetrySummaryGroup } from
|
|
45
|
-
import { OpenTelemetrySummary } from
|
|
46
|
-
import { collectSystemMetrics } from
|
|
38
|
+
import { OpenTelemetryCounterGroup } from "./counter-group.js";
|
|
39
|
+
import { OpenTelemetryCounter } from "./counter.js";
|
|
40
|
+
import { OpenTelemetryHistogramGroup } from "./histogram-group.js";
|
|
41
|
+
import { OpenTelemetryHistogram } from "./histogram.js";
|
|
42
|
+
import { OpenTelemetryMetricGroup } from "./metric-group.js";
|
|
43
|
+
import { OpenTelemetryMetric } from "./metric.js";
|
|
44
|
+
import { OpenTelemetrySummaryGroup } from "./summary-group.js";
|
|
45
|
+
import { OpenTelemetrySummary } from "./summary.js";
|
|
46
|
+
import { collectSystemMetrics } from "./system-metrics.js";
|
|
47
47
|
class OpenTelemetryMetrics {
|
|
48
48
|
transferStats;
|
|
49
49
|
tracer;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libp2p/opentelemetry-metrics",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.18-20bfcb3f9",
|
|
4
4
|
"description": "Opentelemetry metrics gathering for libp2p",
|
|
5
5
|
"license": "Apache-2.0 OR MIT",
|
|
6
6
|
"homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/metrics-opentelemetry#readme",
|
|
@@ -26,7 +26,8 @@
|
|
|
26
26
|
"exports": {
|
|
27
27
|
".": {
|
|
28
28
|
"types": "./dist/src/index.d.ts",
|
|
29
|
-
"import": "./dist/src/index.js"
|
|
29
|
+
"import": "./dist/src/index.js",
|
|
30
|
+
"module-sync": "./dist/src/index.js"
|
|
30
31
|
}
|
|
31
32
|
},
|
|
32
33
|
"scripts": {
|
|
@@ -40,12 +41,12 @@
|
|
|
40
41
|
"test:electron-main": "aegir test -t electron-main"
|
|
41
42
|
},
|
|
42
43
|
"dependencies": {
|
|
43
|
-
"@libp2p/interface": "
|
|
44
|
-
"@libp2p/utils": "
|
|
44
|
+
"@libp2p/interface": "3.2.2-20bfcb3f9",
|
|
45
|
+
"@libp2p/utils": "7.0.17-20bfcb3f9",
|
|
45
46
|
"@opentelemetry/api": "^1.9.0"
|
|
46
47
|
},
|
|
47
48
|
"devDependencies": {
|
|
48
|
-
"@libp2p/logger": "
|
|
49
|
+
"@libp2p/logger": "6.2.6-20bfcb3f9",
|
|
49
50
|
"aegir": "^47.0.22"
|
|
50
51
|
},
|
|
51
52
|
"browser": {
|
package/src/index.ts
CHANGED
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
import { InvalidParametersError, serviceCapabilities } from '@libp2p/interface'
|
|
37
37
|
import { isAsyncGenerator, isGenerator, isPromise } from '@libp2p/utils'
|
|
38
38
|
import { trace, metrics, context, SpanStatusCode } from '@opentelemetry/api'
|
|
39
|
-
import { OpenTelemetryCounterGroup } from './counter-group.
|
|
40
|
-
import { OpenTelemetryCounter } from './counter.
|
|
41
|
-
import { OpenTelemetryHistogramGroup } from './histogram-group.
|
|
42
|
-
import { OpenTelemetryHistogram } from './histogram.
|
|
43
|
-
import { OpenTelemetryMetricGroup } from './metric-group.
|
|
44
|
-
import { OpenTelemetryMetric } from './metric.
|
|
45
|
-
import { OpenTelemetrySummaryGroup } from './summary-group.
|
|
46
|
-
import { OpenTelemetrySummary } from './summary.
|
|
47
|
-
import { collectSystemMetrics } from './system-metrics.
|
|
39
|
+
import { OpenTelemetryCounterGroup } from './counter-group.ts'
|
|
40
|
+
import { OpenTelemetryCounter } from './counter.ts'
|
|
41
|
+
import { OpenTelemetryHistogramGroup } from './histogram-group.ts'
|
|
42
|
+
import { OpenTelemetryHistogram } from './histogram.ts'
|
|
43
|
+
import { OpenTelemetryMetricGroup } from './metric-group.ts'
|
|
44
|
+
import { OpenTelemetryMetric } from './metric.ts'
|
|
45
|
+
import { OpenTelemetrySummaryGroup } from './summary-group.ts'
|
|
46
|
+
import { OpenTelemetrySummary } from './summary.ts'
|
|
47
|
+
import { collectSystemMetrics } from './system-metrics.ts'
|
|
48
48
|
import type { MultiaddrConnection, Stream, Metric, MetricGroup, Metrics, CalculatedMetricOptions, MetricOptions, Counter, CounterGroup, Histogram, HistogramOptions, HistogramGroup, Summary, SummaryOptions, SummaryGroup, CalculatedHistogramOptions, CalculatedSummaryOptions, NodeInfo, TraceFunctionOptions, TraceGeneratorFunctionOptions, TraceAttributes, ComponentLogger, Logger, MessageStream } from '@libp2p/interface'
|
|
49
49
|
import type { Span, Attributes, Meter, Observable } from '@opentelemetry/api'
|
|
50
50
|
|
package/dist/typedoc-urls.json
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"OpenTelemetryComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_opentelemetry-metrics.OpenTelemetryComponents.html",
|
|
3
|
-
".:OpenTelemetryComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_opentelemetry-metrics.OpenTelemetryComponents.html",
|
|
4
|
-
"OpenTelemetryMetricsInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_opentelemetry-metrics.OpenTelemetryMetricsInit.html",
|
|
5
|
-
".:OpenTelemetryMetricsInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_opentelemetry-metrics.OpenTelemetryMetricsInit.html",
|
|
6
|
-
"openTelemetryMetrics": "https://libp2p.github.io/js-libp2p/functions/_libp2p_opentelemetry-metrics.openTelemetryMetrics.html",
|
|
7
|
-
".:openTelemetryMetrics": "https://libp2p.github.io/js-libp2p/functions/_libp2p_opentelemetry-metrics.openTelemetryMetrics.html"
|
|
8
|
-
}
|