We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cdda888 commit 3aa693aCopy full SHA for 3aa693a
lading_payload/src/opentelemetry/log/templates.rs
@@ -94,6 +94,13 @@ impl<'a> crate::SizedGenerator<'a> for LogTemplateGenerator {
94
if inner_budget == original_budget {
95
return Err(GeneratorError::SizeExhausted);
96
}
97
+ // If attribute population was partial -- signaled by
98
+ // inner_budget being drawn down on -- we return the budget back
99
+ // and live with no attributes. We do this because OTLP is
100
+ // expensive to generate and we may be able to create a
101
+ // reasonable instance of a `LogRecord` with the budget
102
+ // otherwise on hand.
103
+ inner_budget = original_budget;
104
Vec::new()
105
106
Err(e) => return Err(e),
0 commit comments