[BUG] Could not load type 'Elastic.Ingest.Elasticsearch.ElasticsearchChannelOptionsBase`1'
- Dominant language
- HTML
- Stars
- 137
- Forks
- 70
- PR merge metrics
- No merged PRs in 30d
Description
ECS project: Elastic.Serilog.Sinks
ECS schema version: latest
ECS .NET assembly version: latest
.NET framework / OS: net4.8 / Windows
After upgrade of Elastic.Ingest.Elasticsearch to version 0.18 or newer, I get the following exception at runtime:
Could not load type 'Elastic.Ingest.Elasticsearch.ElasticsearchChannelOptionsBase`1' from assembly 'Elastic.Ingest.Elasticsearch, Version=0.0.0.0, Culture=neutral, PublicKeyToken=069ca2728db333c1'.
at Elastic.Serilog.Sinks.ElasticsearchSink`1..ctor(ElasticsearchSinkOptions`1 options) in /home/runner/work/ecs-dotnet/ecs-dotnet/src/Elastic.Serilog.Sinks/ElasticsearchSink.cs:line 148
at Elastic.Serilog.Sinks.ElasticsearchSinkExtensions.Elasticsearch[TEcsDocument](LoggerSinkConfiguration loggerConfiguration, ICollection`1 nodes, Action`1 configureOptions, Action`1 configureTransport, Boolean useSniffing, LoggingLevelSwitch levelSwitch, LogEventLevel restrictedToMinimumLevel) in /home/runner/work/ecs-dotnet/ecs-dotnet/src/Elastic.Serilog.Sinks/ElasticsearchSinkExtensions.cs:line 87
....
The cause of the problem is that ElasticsearchChannelOptionsBase has been renamed to IngestChannelOptionsBase in Elastic.Ingest.Elasticsearch v0,18
Contributor guide
Assessment
This issue has not been assessed yet.