GenevaExporter uses Expression.Lambda
from System.Linq.Expressions - AOT size and performance concerns
#1814
Labels
comp:exporter.geneva
Things related to OpenTelemetry.Exporter.Geneva
enhancement
New feature or request
Milestone
When using the GenevaExporter in a native AOT application, it is bringing in System.Linq.Expressions, which adds size to the app, but also any Linq.Expressions are interpreted at runtime (since IL can't be generated).
See the following:
opentelemetry-dotnet-contrib/src/OpenTelemetry.Exporter.Geneva/Internal/ReentrantExportProcessor.cs
Lines 18 to 25 in ab7bdab
Originally posted by @utpilla in #1666 (comment)
We should decide how to fix this. Options I see are:
Batch<T>(T item)
ctor public, and GenevaExporter can just call it.RuntimeFeature.IsDynamicCodeCompiled
isfalse
.opentelemetry-dotnet-contrib/src/OpenTelemetry.Exporter.Geneva/Internal/ReentrantExportProcessor.cs
Lines 10 to 15 in ab7bdab
cc @utpilla @CodeBlanch
The text was updated successfully, but these errors were encountered: