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

Commit 38c7a2d

Browse files
committed
Add maximum serialized TagContext size to fromByteArray Javadoc.
1 parent 1b68e74 commit 38c7a2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/src/main/java/io/opencensus/tags/propagation/TagContextBinarySerializer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ public abstract class TagContextBinarySerializer {
4545
*
4646
* @param bytes on-the-wire representation of a {@code TagContext}.
4747
* @return a {@code TagContext} deserialized from {@code bytes}.
48-
* @throws TagContextDeserializationException if there is a parse error or the serialized {@code
49-
* TagContext} contains invalid tags.
48+
* @throws TagContextDeserializationException if there is a parse error, the input contains
49+
* invalid tags, or the input is larger than 8192 bytes.
5050
*/
5151
public abstract TagContext fromByteArray(byte[] bytes) throws TagContextDeserializationException;
5252
}

0 commit comments

Comments
 (0)