Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit 628c349

Browse files
committed
Move code into Trace folder as opencensus can contain other code in the future
1 parent d5137d0 commit 628c349

22 files changed

Lines changed: 7 additions & 23 deletions

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "opencensus/trace",
2+
"name": "opencensus/opencensus",
33
"type": "library",
44
"description": "OpenCensus Trace Client for PHP",
55
"license": "Apache-2.0",
@@ -20,7 +20,7 @@
2020
},
2121
"autoload": {
2222
"psr-4": {
23-
"OpenCensus\\Trace\\": "src/"
23+
"OpenCensus\\": "src/"
2424
}
2525
}
2626
}
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,11 @@ public static function start(ReporterInterface $reporter, array $options = [])
128128
? $samplerOptions
129129
: SamplerFactory::build($samplerOptions);
130130

131-
return self::$instance = new RequestHandler($reporter, $sampler, $options);
131+
$propagationFormatter = new HttpHeaderFormater();
132+
133+
self::$instance = new RequestHandler($reporter, $sampler, $propagationFormatter, $options);
134+
self::$instance->start($options);
135+
return self::$instance;
132136
}
133137

134138
/**

0 commit comments

Comments
 (0)