From d40d67a5e03485392f09a5da9f63c151341109b3 Mon Sep 17 00:00:00 2001 From: Bartlomiej Obecny <bobecny@gmail.com> Date: Tue, 4 May 2021 21:35:12 +0200 Subject: [PATCH] chore: removing timed event --- README.md | 1 + src/index.ts | 2 -- src/trace/Event.ts | 25 ------------------------- src/trace/TimedEvent.ts | 26 -------------------------- 4 files changed, 1 insertion(+), 53 deletions(-) delete mode 100644 src/trace/Event.ts delete mode 100644 src/trace/TimedEvent.ts diff --git a/README.md b/README.md index 074a0ec2..fcde7a3b 100644 --- a/README.md +++ b/README.md @@ -107,6 +107,7 @@ Because the npm installer and node module resolution algorithm could potentially ### 1.0.0-rc.0 to x +- Removing `TimedEvent` which was not part of spec - `HttpBaggage` renamed to `HttpBaggagePropagator` - [#45](https://github.com/open-telemetry/opentelemetry-js-api/pull/45) `Span#context` renamed to `Span#spanContext` diff --git a/src/index.ts b/src/index.ts index b36eaccd..b365be5e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -21,7 +21,6 @@ export * from './diag'; export * from './propagation/NoopTextMapPropagator'; export * from './propagation/TextMapPropagator'; export * from './trace/attributes'; -export * from './trace/Event'; export * from './trace/link_context'; export * from './trace/link'; export * from './trace/NoopTracer'; @@ -35,7 +34,6 @@ export * from './trace/span_kind'; export * from './trace/span'; export * from './trace/SpanOptions'; export * from './trace/status'; -export * from './trace/TimedEvent'; export * from './trace/trace_flags'; export * from './trace/trace_state'; export * from './trace/tracer_provider'; diff --git a/src/trace/Event.ts b/src/trace/Event.ts deleted file mode 100644 index 8bc5e274..00000000 --- a/src/trace/Event.ts +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { SpanAttributes } from './attributes'; - -/** A text annotation with a set of attributes. */ -export interface Event { - /** The name of the event. */ - name: string; - /** The attributes of the event. */ - attributes?: SpanAttributes; -} diff --git a/src/trace/TimedEvent.ts b/src/trace/TimedEvent.ts deleted file mode 100644 index 632107b2..00000000 --- a/src/trace/TimedEvent.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { Event } from './Event'; -import { HrTime } from '../common/Time'; - -/** - * Represents a timed event. - * A timed event is an event with a timestamp. - */ -export interface TimedEvent extends Event { - time: HrTime; -}