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

Error in example. #4

Open
andrejtad opened this issue Dec 19, 2019 · 1 comment
Open

Error in example. #4

andrejtad opened this issue Dec 19, 2019 · 1 comment

Comments

@andrejtad
Copy link

Hi!

  1. Clone project with composer
  2. Copy "Expose the metrics" example
  3. Try use it

Error:
Uncaught Error: Call to undefined method Bexio\PrometheusPHP\Output\TextRenderer::createFromStream() in /var/www/html/index.php on line 10

  • PHP version: 7.2.10
@NassimBounouas
Copy link

NassimBounouas commented Apr 17, 2020

Hi,

The change has been made by @corvus-ch in this commit.

A quick example :

$buffer = new BufferStream();
$renderer = new TextRenderer();
$renderer->render($counter, $storage->collectSamples($counter), $buffer);
$buffer->getContents()

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

2 participants