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(otlp-exporters): bump otlp proto to 0.20.0 #3932

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions experimental/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ All notable changes to experimental packages in this project will be documented
### :rocket: (Enhancement)

* feat(otlp-grpc-exporters): add support for UDS endpoints. [#3853](https://github.com/open-telemetry/opentelemetry-js/pull/3853) @llc1123
* feat(otlp-exporters): bump otlp proto to 0.20.0 [#3932](https://github.com/open-telemetry/opentelemetry-js/pull/3932) @pichlermarc

### :bug: (Bug Fix)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@

import * as root from './generated/root';
import * as grpc from '@grpc/grpc-js';
import { IExportLogsServiceRequest } from '@opentelemetry/otlp-transformer';
import {
IExportLogsServiceRequest,
IExportLogsServiceResponse,
} from '@opentelemetry/otlp-transformer';
import { ExportType } from './internal-types';
import IExportLogsServiceResponse = root.opentelemetry.proto.collector.logs.v1.IExportLogsServiceResponse;

const responseType = root.opentelemetry.proto.collector.logs.v1
.ExportLogsServiceResponse as ExportType<IExportLogsServiceResponse>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@

import * as root from './generated/root';
import * as grpc from '@grpc/grpc-js';
import { IExportMetricsServiceRequest } from '@opentelemetry/otlp-transformer';
import {
IExportMetricsServiceRequest,
IExportMetricsServiceResponse,
} from '@opentelemetry/otlp-transformer';
import { ExportType } from './internal-types';
import IExportMetricsServiceResponse = root.opentelemetry.proto.collector.metrics.v1.IExportMetricsServiceResponse;

const responseType = root.opentelemetry.proto.collector.metrics.v1
.ExportMetricsServiceResponse as ExportType<IExportMetricsServiceResponse>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@

import * as root from './generated/root';
import * as grpc from '@grpc/grpc-js';
import { IExportTraceServiceRequest } from '@opentelemetry/otlp-transformer';
import {
IExportTraceServiceRequest,
IExportTraceServiceResponse,
} from '@opentelemetry/otlp-transformer';
import { ExportType } from './internal-types';
import IExportTraceServiceResponse = root.opentelemetry.proto.collector.trace.v1.IExportTraceServiceResponse;

const responseType = root.opentelemetry.proto.collector.trace.v1
.ExportTraceServiceResponse as ExportType<IExportTraceServiceResponse>;
Expand Down
6 changes: 6 additions & 0 deletions experimental/packages/otlp-transformer/src/common/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ export interface IInstrumentationScope {

/** InstrumentationScope version */
version?: string;

/** InstrumentationScope attributes */
attributes?: IKeyValue[];

/** InstrumentationScope droppedAttributesCount */
droppedAttributesCount?: number;
}

/** Properties of a KeyValue. */
Expand Down
13 changes: 13 additions & 0 deletions experimental/packages/otlp-transformer/src/logs/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,19 @@ export interface IExportLogsServiceRequest {
resourceLogs?: IResourceLogs[];
}

export interface IExportLogsServiceResponse {
/** ExportLogsServiceResponse partialSuccess */
partialSuccess?: IExportLogsPartialSuccess;
}

export interface IExportLogsPartialSuccess {
/** ExportLogsPartialSuccess rejectedLogRecords */
rejectedLogRecords?: number;

/** ExportLogsPartialSuccess errorMessage */
errorMessage?: string;
}

/** Properties of a ResourceLogs. */
export interface IResourceLogs {
/** ResourceLogs resource */
Expand Down
13 changes: 13 additions & 0 deletions experimental/packages/otlp-transformer/src/metrics/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,19 @@ export interface IExportMetricsServiceRequest {
resourceMetrics: IResourceMetrics[];
}

export interface IExportMetricsServiceResponse {
/** ExportMetricsServiceResponse partialSuccess */
partialSuccess?: IExportMetricsPartialSuccess;
}

export interface IExportMetricsPartialSuccess {
/** ExportMetricsPartialSuccess rejectedDataPoints */
rejectedDataPoints?: number;

/** ExportMetricsPartialSuccess errorMessage */
errorMessage?: string;
}

/** Properties of a ResourceMetrics. */
export interface IResourceMetrics {
/** ResourceMetrics resource */
Expand Down
13 changes: 13 additions & 0 deletions experimental/packages/otlp-transformer/src/trace/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,19 @@ export interface IExportTraceServiceRequest {
resourceSpans?: IResourceSpans[];
}

export interface IExportTraceServiceResponse {
/** ExportTraceServiceResponse partialSuccess */
partialSuccess?: IExportTracePartialSuccess;
}

export interface IExportTracePartialSuccess {
/** ExportLogsServiceResponse rejectedLogRecords */
rejectedSpans?: number;

/** ExportLogsServiceResponse errorMessage */
errorMessage?: string;
}

/** Properties of a ResourceSpans. */
export interface IResourceSpans {
/** ResourceSpans resource */
Expand Down