Coder Social home page Coder Social logo

Comments (7)

jcchavezs avatar jcchavezs commented on August 22, 2024

I think it is about cli config? Can you post the output of php --ini and maybe share your value for Loaded Configuration File? It works for me tho.

from opencensus-php.

tmatsuo avatar tmatsuo commented on August 22, 2024

It's default php.ini installed by phpbrew. Which values do you think cause this?

from opencensus-php.

jcchavezs avatar jcchavezs commented on August 22, 2024

from opencensus-php.

tmatsuo avatar tmatsuo commented on August 22, 2024

I installed ext-intl, but the result was the same

from opencensus-php.

chingor13 avatar chingor13 commented on August 22, 2024

I can reproduce this only if the extension is enabled. @tmatsuo is that the case for you too?

from opencensus-php.

tmatsuo avatar tmatsuo commented on August 22, 2024

Yes

from opencensus-php.

chingor13 avatar chingor13 commented on August 22, 2024

The issue here was that the ExtensionExporter was supplying a startTime as null as an option to opencensus_trace_begin. The extension was taking the double value of null and setting it as the span's start time rather than grabbing the current timestamp.

This was fixed in 2 places (so can be fixed by updating either the extension or the php library).

  • In the library, we set the default time to microtime(true) - available in composer version >= 0.2.3
  • In the extension, we only take the provided startTime option if it's an int or double (assumed to be a unix timestamp) - available in PECL version >= 0.1.4

from opencensus-php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.