Skip to content

Commit

Permalink
Add Event interface (open-telemetry#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
mayurkale22 authored Jul 3, 2019
1 parent 5245015 commit 93db59e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/opentelemetry-types/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export * from './distributed_context/DistributedContext';
export * from './distributed_context/EntryValue';
export * from './resources/Resource';
export * from './trace/attributes';
export * from './trace/Event';
export * from './trace/link';
export * from './trace/Sampler';
export * from './trace/span';
Expand Down
25 changes: 25 additions & 0 deletions packages/opentelemetry-types/src/trace/Event.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/**
* Copyright 2019, 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 { Attributes } 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?: Attributes;
}

0 comments on commit 93db59e

Please sign in to comment.