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

Sampling pollers have an issue on Windows OS #103

Closed
abivolmv opened this issue Oct 2, 2018 · 6 comments
Closed

Sampling pollers have an issue on Windows OS #103

abivolmv opened this issue Oct 2, 2018 · 6 comments
Labels

Comments

@abivolmv
Copy link

abivolmv commented Oct 2, 2018

Hi,

I get the following error when using the sdk :

xray_sampling_error

This is the call to sampling rules in case its needed:

xray_sampling_error1

@abivolmv
Copy link
Author

abivolmv commented Oct 2, 2018

Not sure if related , but before that I was getting this error :

image

and I applied a patch directly in dateutil like here (I know it's not recommended) :
https://stackoverflow.com/a/43688152/2470346

@haotianw465
Copy link
Contributor

It seems like a compatibility issue on botocore and your OS at first and after applying the patch it triggers another issue in X-Ray SDK.

Do you mind providing which python version are you using, is it 32bit or 64bit and what is your timezone offset in your OS so I can take a further look?

@abivolmv
Copy link
Author

abivolmv commented Oct 4, 2018

I tried with Python 2.7 64bit and python 3.7 64bit - same issue. Timezone is UTC+01 (Amsterdam, Berlin)

@abivolmv
Copy link
Author

abivolmv commented Oct 4, 2018

I also get this error (Python 3.7 64bit)

image

@haotianw465 haotianw465 added bug and removed question labels Oct 4, 2018
@haotianw465
Copy link
Contributor

This is a bug on the SDK support with Windows platform. The SDK currently uses strftime and the character %s for conversion from datetime to Unix epoch. You can see from http://man7.org/linux/man-pages/man3/strftime.3.html. However, this character doesn't work cross-platform and it is unix specific. The characters work cross-platform can be found here http://strftime.org and %s is not one of those.

The SDK needs to choose an implementation of converting datetime to POSIX epoch that works cross platforms. We will look into a fix as soon as possible. Sorry for the inconvenience.

@haotianw465 haotianw465 changed the title Issue while polling targets Sampling pollers have an issue on Windows OS Oct 4, 2018
@haotianw465
Copy link
Contributor

This issue should be fixed in the latest release 2.2.0. If you still have issues, feel free to request for re-open.

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

No branches or pull requests

2 participants