You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 3, 2024. It is now read-only.
Add the start() Method and the Ability to Specify the Service Name/Version in the Debug Config (#167)
* Now the cloud debugger is started by explicitly calling the new `start()` method. If the `start()` method is not called within 1 second, it is automatically called and a message is issued detailing that the `start()` method will need to be explicitly called in future releases.
* The start method now also accepts an optional configuration object. Further, any configuration option specified via an environment variable takes priority over configuration options specified in the configuration object given to the `start()` method, which take priority over configuration options specified in the config file specified by the `GCLOUD_DIAGNOSTICS_CONFIG` environment variable.
* The service name and configuration can now be specified in the configuration by specifying the new `serviceContext` attribute as illustrated below:
```
{
...
serviceContext: {
service: 'service-name',
version: '1'
},
...
}
```
0 commit comments