@opentelemetry/exporter-collector
Advanced tools
Comparing version 0.24.1-alpha.1 to 0.24.1-alpha.4
@@ -1,2 +0,2 @@ | ||
import { MetricRecord, MetricExporter } from '@opentelemetry/metrics'; | ||
import { MetricRecord, MetricExporter } from '@opentelemetry/sdk-metrics-base'; | ||
import { CollectorExporterConfigBase } from '../../types'; | ||
@@ -3,0 +3,0 @@ import * as collectorTypes from '../../types'; |
import { CollectorExporterConfigBase } from '../../types'; | ||
import { CollectorExporterBrowserBase } from './CollectorExporterBrowserBase'; | ||
import { ReadableSpan, SpanExporter } from '@opentelemetry/tracing'; | ||
import { ReadableSpan, SpanExporter } from '@opentelemetry/sdk-trace-base'; | ||
import * as collectorTypes from '../../types'; | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import { MetricRecord, MetricExporter } from '@opentelemetry/metrics'; | ||
import { MetricRecord, MetricExporter } from '@opentelemetry/sdk-metrics-base'; | ||
import * as collectorTypes from '../../types'; | ||
@@ -3,0 +3,0 @@ import { CollectorExporterNodeConfigBase } from './types'; |
@@ -1,2 +0,2 @@ | ||
import { ReadableSpan, SpanExporter } from '@opentelemetry/tracing'; | ||
import { ReadableSpan, SpanExporter } from '@opentelemetry/sdk-trace-base'; | ||
import { CollectorExporterNodeBase } from './CollectorExporterNodeBase'; | ||
@@ -3,0 +3,0 @@ import { CollectorExporterNodeConfigBase } from './types'; |
import { SpanAttributes, SpanKind, SpanStatus, TraceState } from '@opentelemetry/api'; | ||
import * as core from '@opentelemetry/core'; | ||
import { Resource } from '@opentelemetry/resources'; | ||
import { ReadableSpan, TimedEvent } from '@opentelemetry/tracing'; | ||
import { ReadableSpan, TimedEvent } from '@opentelemetry/sdk-trace-base'; | ||
import { CollectorExporterBase } from './CollectorExporterBase'; | ||
@@ -6,0 +6,0 @@ import { opentelemetryProto, CollectorExporterConfigBase } from './types'; |
import { Labels } from '@opentelemetry/api-metrics'; | ||
import * as core from '@opentelemetry/core'; | ||
import { MetricRecord } from '@opentelemetry/metrics'; | ||
import { MetricRecord } from '@opentelemetry/sdk-metrics-base'; | ||
import { Resource } from '@opentelemetry/resources'; | ||
@@ -5,0 +5,0 @@ import { CollectorExporterBase } from './CollectorExporterBase'; |
@@ -18,3 +18,3 @@ /* | ||
import * as core from '@opentelemetry/core'; | ||
import { AggregatorKind, MetricKind, } from '@opentelemetry/metrics'; | ||
import { AggregatorKind, MetricKind, } from '@opentelemetry/sdk-metrics-base'; | ||
import { toCollectorResource } from './transform'; | ||
@@ -21,0 +21,0 @@ import { opentelemetryProto } from './types'; |
@@ -1,2 +0,2 @@ | ||
import { MetricRecord, MetricExporter } from '@opentelemetry/metrics'; | ||
import { MetricRecord, MetricExporter } from '@opentelemetry/sdk-metrics-base'; | ||
import { CollectorExporterConfigBase } from '../../types'; | ||
@@ -3,0 +3,0 @@ import * as collectorTypes from '../../types'; |
import { CollectorExporterConfigBase } from '../../types'; | ||
import { CollectorExporterBrowserBase } from './CollectorExporterBrowserBase'; | ||
import { ReadableSpan, SpanExporter } from '@opentelemetry/tracing'; | ||
import { ReadableSpan, SpanExporter } from '@opentelemetry/sdk-trace-base'; | ||
import * as collectorTypes from '../../types'; | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import { MetricRecord, MetricExporter } from '@opentelemetry/metrics'; | ||
import { MetricRecord, MetricExporter } from '@opentelemetry/sdk-metrics-base'; | ||
import * as collectorTypes from '../../types'; | ||
@@ -3,0 +3,0 @@ import { CollectorExporterNodeConfigBase } from './types'; |
@@ -1,2 +0,2 @@ | ||
import { ReadableSpan, SpanExporter } from '@opentelemetry/tracing'; | ||
import { ReadableSpan, SpanExporter } from '@opentelemetry/sdk-trace-base'; | ||
import { CollectorExporterNodeBase } from './CollectorExporterNodeBase'; | ||
@@ -3,0 +3,0 @@ import { CollectorExporterNodeConfigBase } from './types'; |
import { SpanAttributes, SpanKind, SpanStatus, TraceState } from '@opentelemetry/api'; | ||
import * as core from '@opentelemetry/core'; | ||
import { Resource } from '@opentelemetry/resources'; | ||
import { ReadableSpan, TimedEvent } from '@opentelemetry/tracing'; | ||
import { ReadableSpan, TimedEvent } from '@opentelemetry/sdk-trace-base'; | ||
import { CollectorExporterBase } from './CollectorExporterBase'; | ||
@@ -6,0 +6,0 @@ import { opentelemetryProto, CollectorExporterConfigBase } from './types'; |
import { Labels } from '@opentelemetry/api-metrics'; | ||
import * as core from '@opentelemetry/core'; | ||
import { MetricRecord } from '@opentelemetry/metrics'; | ||
import { MetricRecord } from '@opentelemetry/sdk-metrics-base'; | ||
import { Resource } from '@opentelemetry/resources'; | ||
@@ -5,0 +5,0 @@ import { CollectorExporterBase } from './CollectorExporterBase'; |
@@ -21,3 +21,3 @@ "use strict"; | ||
const core = require("@opentelemetry/core"); | ||
const metrics_1 = require("@opentelemetry/metrics"); | ||
const sdk_metrics_base_1 = require("@opentelemetry/sdk-metrics-base"); | ||
const transform_1 = require("./transform"); | ||
@@ -40,3 +40,3 @@ const types_1 = require("./types"); | ||
function toAggregationTemporality(metric) { | ||
if (metric.descriptor.metricKind === metrics_1.MetricKind.VALUE_OBSERVER) { | ||
if (metric.descriptor.metricKind === sdk_metrics_base_1.MetricKind.VALUE_OBSERVER) { | ||
return types_1.opentelemetryProto.metrics.v1.AggregationTemporality | ||
@@ -91,9 +91,9 @@ .AGGREGATION_TEMPORALITY_UNSPECIFIED; | ||
}; | ||
if (metric.aggregator.kind === metrics_1.AggregatorKind.SUM || | ||
metric.descriptor.metricKind === metrics_1.MetricKind.SUM_OBSERVER || | ||
metric.descriptor.metricKind === metrics_1.MetricKind.UP_DOWN_SUM_OBSERVER) { | ||
if (metric.aggregator.kind === sdk_metrics_base_1.AggregatorKind.SUM || | ||
metric.descriptor.metricKind === sdk_metrics_base_1.MetricKind.SUM_OBSERVER || | ||
metric.descriptor.metricKind === sdk_metrics_base_1.MetricKind.UP_DOWN_SUM_OBSERVER) { | ||
const result = { | ||
dataPoints: [toDataPoint(metric, startTime)], | ||
isMonotonic: metric.descriptor.metricKind === metrics_1.MetricKind.COUNTER || | ||
metric.descriptor.metricKind === metrics_1.MetricKind.SUM_OBSERVER, | ||
isMonotonic: metric.descriptor.metricKind === sdk_metrics_base_1.MetricKind.COUNTER || | ||
metric.descriptor.metricKind === sdk_metrics_base_1.MetricKind.SUM_OBSERVER, | ||
aggregationTemporality: toAggregationTemporality(metric), | ||
@@ -108,3 +108,3 @@ }; | ||
} | ||
else if (metric.aggregator.kind === metrics_1.AggregatorKind.LAST_VALUE) { | ||
else if (metric.aggregator.kind === sdk_metrics_base_1.AggregatorKind.LAST_VALUE) { | ||
const result = { | ||
@@ -120,3 +120,3 @@ dataPoints: [toDataPoint(metric, startTime)], | ||
} | ||
else if (metric.aggregator.kind === metrics_1.AggregatorKind.HISTOGRAM) { | ||
else if (metric.aggregator.kind === sdk_metrics_base_1.AggregatorKind.HISTOGRAM) { | ||
const result = { | ||
@@ -123,0 +123,0 @@ dataPoints: [toHistogramPoint(metric, startTime)], |
{ | ||
"name": "@opentelemetry/exporter-collector", | ||
"version": "0.24.1-alpha.1+3b9cd16a", | ||
"version": "0.24.1-alpha.4+a8d39317", | ||
"description": "OpenTelemetry Collector Exporter allows user to send collected traces to the OpenTelemetry Collector", | ||
@@ -87,9 +87,9 @@ "main": "build/src/index.js", | ||
"dependencies": { | ||
"@opentelemetry/api-metrics": "^0.24.1-alpha.1+3b9cd16a", | ||
"@opentelemetry/core": "^0.24.1-alpha.1+3b9cd16a", | ||
"@opentelemetry/metrics": "^0.24.1-alpha.1+3b9cd16a", | ||
"@opentelemetry/resources": "^0.24.1-alpha.1+3b9cd16a", | ||
"@opentelemetry/tracing": "^0.24.1-alpha.1+3b9cd16a" | ||
"@opentelemetry/api-metrics": "^0.24.1-alpha.4+a8d39317", | ||
"@opentelemetry/core": "^0.24.1-alpha.4+a8d39317", | ||
"@opentelemetry/resources": "^0.24.1-alpha.4+a8d39317", | ||
"@opentelemetry/sdk-metrics-base": "^0.24.1-alpha.4+a8d39317", | ||
"@opentelemetry/sdk-trace-base": "^0.24.1-alpha.4+a8d39317" | ||
}, | ||
"gitHead": "3b9cd16a8eeed7a262bdfea4c93098861b4c1ba0" | ||
"gitHead": "a8d39317b5daad727f2116ca314db0d1420ec488" | ||
} |
@@ -26,4 +26,4 @@ # OpenTelemetry Collector Exporter for web and node | ||
```js | ||
import { BatchSpanProcessor } from '@opentelemetry/tracing'; | ||
import { WebTracerProvider } from '@opentelemetry/web'; | ||
import { BatchSpanProcessor } from '@opentelemetry/sdk-trace-base'; | ||
import { WebTracerProvider } from '@opentelemetry/sdk-trace-web'; | ||
import { CollectorTraceExporter } from '@opentelemetry/exporter-collector'; | ||
@@ -59,3 +59,3 @@ | ||
```js | ||
import { MeterProvider } from '@opentelemetry/metrics'; | ||
import { MeterProvider } from '@opentelemetry/sdk-metrics-base'; | ||
import { CollectorMetricExporter } from '@opentelemetry/exporter-collector'; | ||
@@ -84,3 +84,3 @@ const collectorOptions = { | ||
```js | ||
const { BasicTracerProvider, BatchSpanProcessor } = require('@opentelemetry/tracing'); | ||
const { BasicTracerProvider, BatchSpanProcessor } = require('@opentelemetry/sdk-trace-base'); | ||
const { CollectorTraceExporter } = require('@opentelemetry/exporter-collector'); | ||
@@ -112,3 +112,3 @@ | ||
```js | ||
const { MeterProvider } = require('@opentelemetry/metrics'); | ||
const { MeterProvider } = require('@opentelemetry/sdk-metrics-base'); | ||
const { CollectorMetricExporter } = require('@opentelemetry/exporter-collector'); | ||
@@ -115,0 +115,0 @@ const collectorOptions = { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
248772
+ Added@opentelemetry/sdk-metrics-base@^0.24.1-alpha.4+a8d39317
+ Added@opentelemetry/sdk-trace-base@^0.24.1-alpha.4+a8d39317
+ Added@opentelemetry/api-metrics@0.24.0(transitive)
+ Added@opentelemetry/sdk-metrics-base@0.24.1-alpha.20(transitive)
+ Added@opentelemetry/sdk-trace-base@0.24.1-alpha.20(transitive)
+ Added@opentelemetry/semantic-conventions@0.24.0(transitive)
- Removed@opentelemetry/metrics@0.24.1-alpha.31(transitive)
- Removed@opentelemetry/tracing@0.24.1-alpha.31(transitive)