Closed stefanak-michal closed 1 year ago
Drivers should not allow applications to change this value.
https://neo4j.com/docs/bolt/current/bolt/message/#messages-hello
So that means bolt driver will be always setting this by itself.
This is great, I'm doing something similar with user_agent in the driver.
It's up to you how to design the product version, but I'm leveraging the composer v2 functionality here so I don't forget to hardcode the new tags.
yeah, I used the same. it will look like this:
$extra['bolt_agent'] = [
'product' => 'php-bolt/' . \Composer\InstalledVersions::getPrettyVersion('stefanak-michal/bolt'),
'platform' => php_uname(),
'language' => 'PHP/' . phpversion(),
'language_details' => 'null'
];
New field in extra
bolt_agent
will be required. Fill dictionary with values if they are missing.