For long-lived grpc streaming messages, can we add parameters for ocgrpc to control the number of MessageEvents in a single span?
chuerxiao opened this issue · 5 comments
chuerxiao commented
Is your feature request related to a problem? Please describe.
dgraph-io/dgraph#3032
Describe the solution you'd like
We add parameters to ocgrpc to control the number of MessageEvents in a single span.
Describe alternatives you've considered
Additional context
chuerxiao commented
Sorry, I see that the latest version is already supported.
const (
// DefaultMaxAnnotationEventsPerSpan is default max number of annotation events per span
DefaultMaxAnnotationEventsPerSpan = 32
// DefaultMaxMessageEventsPerSpan is default max number of message events per span
DefaultMaxMessageEventsPerSpan = 128
// DefaultMaxAttributesPerSpan is default max number of attributes per span
DefaultMaxAttributesPerSpan = 32
// DefaultMaxLinksPerSpan is default max number of links per span
DefaultMaxLinksPerSpan = 32
)
chuerxiao commented
songy23 commented
@chuerxiao Does #1015 resolve your issue?
songy23 commented
Consider resolved, feel free to reopen if you have follow-up questions.
chuerxiao commented
We made the dgraph version using the latest opencensus version. The dgraph was run for about two weeks and did not find that the dgraph had a memory leak associated with the trace function.