We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0cc15e commit 0257c5aCopy full SHA for 0257c5a
experimental/packages/api-events/src/types/Event.ts
@@ -14,8 +14,10 @@
14
* limitations under the License.
15
*/
16
17
-import { Attributes } from '@opentelemetry/api';
18
-import { LogAttributeValue } from '@opentelemetry/api-logs';
+import { AttributeValue, Attributes } from '@opentelemetry/api';
+import { LogAttributes } from '@opentelemetry/api-logs';
19
+
20
+export type EventDataValue = AttributeValue | LogAttributes;
21
22
export interface Event {
23
/**
@@ -29,10 +31,10 @@ export interface Event {
29
31
name: string;
30
32
33
- * Attributes that describe the event.
34
+ * Data that describes the event.
35
* Intended to be used by instrumentation libraries.
36
- data?: LogAttributeValue;
37
+ data?: EventDataValue;
38
39
40
* Additional attributes that describe the event.
0 commit comments