Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

Commit

Permalink
docs: add notes on attribute key descriptor (#155)
Browse files Browse the repository at this point in the history
Co-authored-by: Valentin Marchaud <contact@vmarchaud.fr>
  • Loading branch information
legendecas and vmarchaud authored Jan 25, 2022
1 parent b125324 commit 1ed52fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/common/Attributes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

/**
* Attributes is a map from string to attribute values.
*
* Note: only the own enumerable keys are counted as valid attribute keys.
*/
export interface Attributes {
[attributeKey: string]: AttributeValue | undefined;
Expand Down
4 changes: 2 additions & 2 deletions src/trace/attributes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
import { Attributes, AttributeValue } from '../common/Attributes';

/**
* @deprecated please use Attributes
* @deprecated please use {@link Attributes}
*/
export type SpanAttributes = Attributes;

/**
* @deprecated please use AttributeValue
* @deprecated please use {@link AttributeValue}
*/
export type SpanAttributeValue = AttributeValue;

0 comments on commit 1ed52fd

Please sign in to comment.