ecs-dotnet icon indicating copy to clipboard operation
ecs-dotnet copied to clipboard

[BUG] Recently updated dependency Elastic.Transport 0.4.18 break the use of ElasticsearchSinkOptions

Open GuillaumeBau opened this issue 1 year ago • 3 comments

ECS integration/library project(s) (e.g. Elastic.CommonSchema.Serilog): Elastic.Serilog.Sinks

ECS schema version (e.g. 1.4.0): 8.6.1

ECS .NET assembly version (e.g. 1.4.2): 8.6.1

Elasticsearch version (if applicable):

.NET framework / OS: .NET 6

Description of the problem, including expected versus actual behavior: The new Elastic.Transport version introduce the ITransport Interface (https://github.com/elastic/elasticsearch-net/pull/8061) Doing "new ElasticsearchSinkOptions(ITransport)" cause the error CS7069 Reference to type 'HttpTransport' claims it is defined in 'Elastic.Transport', but it could not be found

image

Works with Elastic.Clients.Elasticsearch 8.12.0, the error was introduce when updating to 8.12.1

GuillaumeBau avatar Mar 27 '24 07:03 GuillaumeBau

I have this same issue.

cbusjay avatar Mar 27 '24 14:03 cbusjay

Thank you for raising this @GuillaumeBau we're addressing this here first:

https://github.com/elastic/elastic-ingest-dotnet/pull/47

And will shortly after update all references for the ecs-dotnet libraries as well.

Mpdreamz avatar Mar 28 '24 12:03 Mpdreamz

This has been addressed here: https://github.com/elastic/ecs-dotnet/pull/364

Mpdreamz avatar Mar 28 '24 15:03 Mpdreamz