Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit 94cc98c

Browse files
draffenspergermayurkale22
authored andcommitted
Add message event size fields (#323)
1 parent c10212f commit 94cc98c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ All notable changes to this project will be documented in this file.
1010
- Add support for supplying instrumentation configuration via tracing option. Option argument added to instrumentation interface.
1111
- Add ignoreIncomingPaths and ignoreOutgoingUrls support to the http and https tracing instrumentations.
1212
- Add ```opencensus-resource-util``` to auto detect AWS, GCE and Kubernetes(K8S) monitored resource, based on the environment where the application is running.
13+
- Add optional `uncompressedSize` and `compressedSize` fields to `MessageEvent` interface.
1314

1415
**This release has multiple breaking changes. Please test your code accordingly after upgrading.**
1516

packages/opencensus-core/src/trace/model/types.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ export interface MessageEvent {
4848
type: string;
4949
/** An identifier for the MessageEvent's message. */
5050
id: string;
51+
/** The number of uncompressed bytes sent or received. */
52+
uncompressedSize?: number;
53+
/**
54+
* The number of compressed bytes sent or received. If zero or
55+
* undefined, assumed to be the same size as uncompressed.
56+
*/
57+
compressedSize?: number;
5158
}
5259

5360
/**

0 commit comments

Comments
 (0)