Releases: gggeek/pinba_php
Releases · gggeek/pinba_php
1.1.1
- improved: if any of the string values sent to the Pinba server include a NUL character (
chr(0)
), behave the same way as the php extension does, ie. truncating the string to the part before the first NUL character occurrence - improved: added to the tests directory the .proto file, and made available within the test containers the
protoc
command-line tool, to simplify decoding of raw messages
1.1.0
1.0.0
- improved: replicate extension behaviour: convert tag values to string upon setting them
- improved: replicate extension behaviour: delete stopped timers when calling
flush
even ifpinba.enabled=0
- improved: increased test code coverage. Also, use utf8 for the reports table in the pinba2 test db
- improved: added a benchmark file and documented expected performances
0.4.0
- fixed a bug in merging timers tags, introduced in v0.3
- fixed: request tags were not being properly sent to the server
- fixed: parsing IPv6 addresses, or addresses in the form
[127.0.0.1]:8080
inpinba_server
configuration option - fixed: return type of
pinba_timers_get
- improved: added support for
pinba.auto_flush
configuration option - improved: report automatically to Pinba the script's http status code by default
- improved: support custom
hit_count
values on timer creation - improved: added 4th parameter
$hit_count = 1
topinba_timer_add
- improved: support (undocumented) function
pinba_get_data
- improved: support (undocumented) function
pinba_reset
- improved: replicate extension behaviour: return
false
instead ofnull
on a failedpinba_tag_get
call - improved: replicate extension behaviour: default
req_count
is 1 in data fromget_info()
, but 0 as sent to the server - improved: replicate extension behaviour: once flushed, timers are not visible any more in
pinba_get_info
andpinba_timers_get
calls - improved: replicate extension behaviour: a
PinbaClient
object will not flush automatically upon destruction if it was flushed manually beforehand - improved: added one more sample file: doc/measure_body_size.php
0.3.0
- fixed default value for
$flag
argument ofpinba_timers_get
- fixed return value of
pinba_tag_delete
- fixed: when creating two or more timers with the same tag values, but tags in different order, they would not be merged
- added: class
PinbaClient
- with a few limitations, see README - added method:
pinba_reset
- improved: added more sanity checks of function arguments values, closely matching the behaviour of the extension
- improved test code coverage
0.2.0
- added constants:
PINBA_FLUSH_ONLY_STOPPED_TIMERS
,PINBA_FLUSH_RESET_DATA
,PINBA_ONLY_RUNNING_TIMERS
,PINBA_AUTO_FLUSH
,PINBA_ONLY_STOPPED_TIMERS
- added methods:
pinba_timer_add
,pinba_timers_get
,pinba_schema_set
,pinba_server_name_set
,pinba_request_time_set
,pinba_tag_set
,pinba_tag_get
,pinba_tag_delete
,pinba_tags_get
- fixed return value for methods:
pinba_script_name_set
,pinba_hostname_set
- fixed:
pinba_flush
now stops all timers by default. It also supports 2nd argument$flags
to change its behaviour - added non-API methods:
Pinba::ini_set
andPinba::ini_get
- made sure CI tests can successfully connect to the pinba servers and query them
0.1.0
Changes compared to the previous state (2013 commits): this thing now works well enough to send data to a Pinba server
- fix bugs with non-existing class method being called
- fix float fields in protobuf messages sent
- various API compatibility fixes
- add CI tests using GitHub Actions