Skip to content

InfluxDBSink has breaking change dependency on with RestSharp Version>= "107.3.0" #10

@cvizzini

Description

@cvizzini

When implementing InfluxDB reporting as well as having RestSharp version > 106.12.0 with throw the following error:

System.MissingMethodException: 'Method not found: 'Void RestSharp.RestClient.set_UserAgent(System.String)'.'

var influxDbConfig = InfluxDbSinkConfig.Create(
	url: "http://localhost:8086", database: "API_Test",
	userName: "Admin", password: "password"
);

//create InfluxDB reporting sink
using var influxDb = new InfluxDBSink(influxDbConfig);

NBomberRunner
	.RegisterScenarios(scenariosToRun)
	.WithWorkerPlugins(pingPlugin)
	.WithReportingSinks(influxDb)
	.WithTestName(" API Test")
	.WithTestSuite(" API Test Suite")
	.Run();

This is due to the InfluxDB.Client required by InfluxDB Sink to be 3.1.0 which locks the RestSharp Version to 106.12.0. However the latest 4.0.0 supports RestSharp Version>= "107.3.0"

Please update to version InfluxDB.Client 4.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions