Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable OpenTelemetry Logging in Serenity 3.3.10 #3505

Open
rajDataExprt opened this issue Jul 29, 2024 · 4 comments
Open

Disable OpenTelemetry Logging in Serenity 3.3.10 #3505

rajDataExprt opened this issue Jul 29, 2024 · 4 comments

Comments

@rajDataExprt
Copy link

Currently I am using Serenity BDD 3.3.10 and my test cases are failing on Saucelab with Driver Configuration Error


net.thucydides.core.webdriver.DriverConfigurationError: WebDriver was unable to create a new instance of type class org.openqa.selenium.remote.RemoteWebDriver
WebDriver reported the following message: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure. 
Host info: host: 'aexp-ubuntu-latest-medium-jtdbn-runner-7z8z6', ip: '172.16.6.53'
Build info: version: '4.5.3', revision: '4b786a1e430'
System info: os.name: 'Linux', os.arch: 'amd64', os.version: '4.18.0-553.8.1.el8_10.x86_64', java.version: '1.8.0_422'
Driver info: org.openqa.selenium.remote.RemoteWebDriver
Command: [null, newSession {capabilities=[Capabilities {browserName: chrome, goog:chromeOptions: {args: [], extensions: []}, name: Sanity Test Login to Github..., sauce:options: {accessKey: xxxxxxxxxx..., tags: [e2e, capability:Ui tests, gh, test, feature:Ui tests/Sanity Tes...], username: xxxxxxxxx}}], desiredCapabilities=Capabilities {browserName: chrome, goog:chromeOptions: {args: [], extensions: []}, name: Sanity Test Login to Github..., sauce:options: {accessKey: xxxxxxxxxxxxx.., tags: [e2e, capability:Ui tests, gh, test, feature:Ui tests/Sanity Tes...], username: xxxxxxxxxxxx}}}]
Capabilities {}

After debugging it as workaround I found it to disable Open Telemetry Logging will resolve this issues

Refereeing this Fix - SeleniumHQ/selenium#10281

I was facing Same issue with Selenium Testing scripts so I have added following in my scripts
driver = new RemoteWebDriver(url, options, false);

and Its working

For Serenity as I don't have own driver code pls suggest a way to disable opentelemetry logging

@rajDataExprt rajDataExprt changed the title Disable Open Telemetry Logging in Serenity 3.3.10 Disable OpenTelemetry Logging in Serenity 3.3.10 Jul 29, 2024
@rajDataExprt
Copy link
Author

Can any on help on this Its blocker for me and my team

@rajDataExprt
Copy link
Author

@wakaleo Could you please help us on this

@vace117
Copy link

vace117 commented Sep 18, 2024

This is an issue for me as well.

return new RemoteWebDriver(remoteUrl, capabilities);

is hard-coded inside net.serenitybdd.core.webdriver.driverproviders.RemoteDriverProvider, so there's no way to start the RemoteWebDriver w/o tracing from Serenity.

@wakaleo
Copy link
Member

wakaleo commented Sep 18, 2024

Your best option is to raise a Pr on the latest version of the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants