Skip to content

Commit

Permalink
feat(otlp-exporters): bump otlp proto to 0.20.0 (open-telemetry#3932)
Browse files Browse the repository at this point in the history
  • Loading branch information
pichlermarc committed Jun 26, 2023
1 parent 6f3af1b commit 40a40df
Show file tree
Hide file tree
Showing 10 changed files with 60 additions and 8 deletions.
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

0 comments on commit 40a40df

Please sign in to comment.