Skip to content

Conversation

@janstenpickle
Copy link
Contributor

Avro encoding/decoding isn't threadsafe. This creates an encoder and decoder
that uses ThreadLocal for storing the underlying Avro encoder/decoders.

Assumes that most of the time people won't have multiple Avro exporters so
defaults to constructing the encoder/decoder for them. The agent/collector
should make sure there is only one instance of the encoder/decoder however.

Avro encoding/decoding isn't threadsafe. This creates an encoder and decoder
that uses `ThreadLocal` for storing the underlying Avro encoder/decoders.

Assumes that most of the time people won't have multiple Avro exporters so
defaults to constructing the encoder/decoder for them. The agent/collector
should make sure there is only one instance of the encoder/decoder however.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants