File tree Expand file tree Collapse file tree 2 files changed +7
-74
lines changed Expand file tree Collapse file tree 2 files changed +7
-74
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3636builder . AddServiceDefaults ( AppVersion . Get ( typeof ( Program ) ) ) . ConfigureAdditionalOpenTelemetry ( telemetryBuilder =>
3737{
3838 telemetryBuilder . WithTracing ( b => b . AddNpgsql ( )
39- . AddEntityFrameworkCoreInstrumentation ( c => c . SetDbStatementForText = true )
39+ . AddEntityFrameworkCoreInstrumentation ( c =>
40+ {
41+ //never emit traces for sqlite as there's way too much noise and it'll crash servers and overrun honeycomb
42+ c . Filter = ( provider , command ) => provider is not "Microsoft.EntityFrameworkCore.Sqlite" ;
43+ c . SetDbStatementForText = true ;
44+ } )
4045 . AddSource ( FwHeadlessActivitySource . ActivitySourceName ,
4146 FwLiteProjectSyncActivitySource . ActivitySourceName ,
4247 FwDataMiniLcmBridgeActivitySource . ActivitySourceName ,
43- LcmCrdtActivitySource . ActivitySourceName )
44- . SetSampler < OtelSampler > ( ) ) ;
48+ LcmCrdtActivitySource . ActivitySourceName ) ) ;
4549} ) ;
4650
4751var app = builder . Build ( ) ;
You can’t perform that action at this time.
0 commit comments