Side-effects when giving agent
config to useHive()
?
#6052
-
Hey there, I have a question regarding the possibility of calling Our goal is to provide our own logger with a specific log-level (debug) so that we no longer see Hive's standard For one, I think it would be awesome to have that documented – at least I didn't find info other than in the source. useHive({
agent: {
logger: {
info: ourLogger.debug,
error: ourLogger.error
},
maxSize: 1500
}
}) This works as we expected and we can't see any other implications. But I wanted to get some confirmation that this really has no other side-effects. I would really appreciate any feedback. Especially if I missed something in docs or code. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey @4nduril-ms, excuse the late reply! We originally introduced this so we can write better unit tests for verifying the functionality. We usually do not recommend people to tweak the In terms of overriding the logger, you are free to do that! I created a separate issue for tracking documentation of these configuration options: #7114 |
Beta Was this translation helpful? Give feedback.
Hey @4nduril-ms, excuse the late reply! We originally introduced this so we can write better unit tests for verifying the functionality. We usually do not recommend people to tweak the
maxSize
these as the default configuration is what we figured out to be best suited batch size for our usage reporting endpoint to consume.In terms of overriding the logger, you are free to do that! I created a separate issue for tracking documentation of these configuration options: #7114