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

Commit 6093d22

Browse files
authored
Merge pull request #760 from sebright/remove-max-serialized-tagcontext-size
Avoid specifying maximum size of serialized TagContext.
2 parents ef48449 + 7147808 commit 6093d22

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ public abstract class TagContextBinarySerializer {
3434
*
3535
* @param tags the {@code TagContext} to serialize.
3636
* @return the on-the-wire representation of a {@code TagContext}.
37-
* @throws TagContextSerializationException if the result would be larger than 8192 bytes.
37+
* @throws TagContextSerializationException if the result would be larger than the maximum allowed
38+
* serialized size.
3839
*/
3940
public abstract byte[] toByteArray(TagContext tags) throws TagContextSerializationException;
4041

@@ -46,7 +47,7 @@ public abstract class TagContextBinarySerializer {
4647
* @param bytes on-the-wire representation of a {@code TagContext}.
4748
* @return a {@code TagContext} deserialized from {@code bytes}.
4849
* @throws TagContextDeserializationException if there is a parse error, the input contains
49-
* invalid tags, or the input is larger than 8192 bytes.
50+
* invalid tags, or the input is larger than the maximum allowed serialized size.
5051
*/
5152
public abstract TagContext fromByteArray(byte[] bytes) throws TagContextDeserializationException;
5253
}

0 commit comments

Comments
 (0)