-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trace: Allow Custom Trace Providers #25
- Loading branch information
1 parent
4ce4884
commit 7e43690
Showing
4 changed files
with
81 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
src/A1comms/GaeSupportLaravel/GaeSupportServiceProvider.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?php | ||
|
||
namespace A1comms\GaeSupportLaravel; | ||
|
||
use Illuminate\Support\ServiceProvider; | ||
|
||
/** | ||
* Class GaeSupportServiceProvider | ||
* | ||
* @package A1comms\GaeSupportLaravel | ||
*/ | ||
class GaeSupportServiceProvider extends ServiceProvider | ||
{ | ||
/** | ||
* Indicates if loading of the provider is deferred. | ||
* | ||
* @var bool | ||
*/ | ||
protected $defer = false; | ||
|
||
/** | ||
* Register bindings in the container. | ||
* | ||
* @return void | ||
*/ | ||
public function register() | ||
{ | ||
$this->mergeConfigFrom( | ||
__DIR__.'/../../config/gaesupport.php', 'gaesupport' | ||
); | ||
} | ||
|
||
/** | ||
* Bootstrap any application services. | ||
* | ||
* @return void | ||
*/ | ||
public function boot() | ||
{ | ||
// Publish our config file when the user runs "artisan vendor:publish". | ||
$this->publishes([ | ||
__DIR__.'/../../config/gaesupport.php' => config_path('gaesupport.php'), | ||
]); | ||
} | ||
|
||
/** | ||
* Get the services provided by the provider. | ||
* | ||
* @return array | ||
*/ | ||
public function provides() | ||
{ | ||
return array('gae-support'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
return [ | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Trace Providers | ||
|-------------------------------------------------------------------------- | ||
| | ||
| This is an array of classes to register for the StackDriver Trace integration, | ||
| defining runtime trace hooks via the opensensus PECL module, | ||
| so code changes inside the application aren't required. | ||
| | ||
| These should implement OpenCensus\Trace\Integrations\IntegrationInterface | ||
| | ||
*/ | ||
|
||
'trace_providers' => [ | ||
|
||
], | ||
]; |