Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: metric aggregation temporality controls #2902

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'main' into instrument-aggregation-temporality
seemk committed Apr 21, 2022

Verified

This commit was signed with the committer’s verified signature.
seemk Siim Kallas
commit 79a66575b6943f4ff285db68f9fa2416e8094195
Original file line number Diff line number Diff line change
@@ -15,8 +15,16 @@
*/

import { ExportResult } from '@opentelemetry/core';
import { AggregationTemporality, AggregationTemporalitySelector, CumulativeTemporalitySelector, DeltaTemporalitySelector, InstrumentType, PushMetricExporter, ResourceMetrics } from '@opentelemetry/sdk-metrics-base';
import { OTLPExporterBase, otlpTypes } from '@opentelemetry/exporter-trace-otlp-http';
import {
AggregationTemporality,
AggregationTemporalitySelector,
CumulativeTemporalitySelector,
DeltaTemporalitySelector,
InstrumentType,
PushMetricExporter,
ResourceMetrics
} from '@opentelemetry/sdk-metrics-base';
import { otlpTypes } from '@opentelemetry/exporter-trace-otlp-http';
import { defaultOptions, OTLPMetricExporterOptions } from './OTLPMetricExporterOptions';
import { OTLPExporterBase } from '@opentelemetry/otlp-exporter-base';

Original file line number Diff line number Diff line change
@@ -14,7 +14,10 @@
* limitations under the License.
*/

export interface OTLPMetricExporterOptions extends otlpTypes.OTLPExporterConfigBase {
import { AggregationTemporality } from '@opentelemetry/sdk-metrics-base';
import { OTLPExporterConfigBase } from '@opentelemetry/otlp-exporter-base';

export interface OTLPMetricExporterOptions extends OTLPExporterConfigBase {
preferredAggregationTemporality?: AggregationTemporality
}
export const defaultExporterTemporality = AggregationTemporality.CUMULATIVE;
You are viewing a condensed version of this merge commit. You can view the full changes here.