|
15 | 15 | */ |
16 | 16 |
|
17 | 17 | /* |
18 | | - * This is the implementation of the OpenCensus\Trace\Context class. The PHP |
| 18 | + * This is the implementation of the OpenCensus\Trace\SpanContext class. The PHP |
19 | 19 | * equivalent is: |
20 | 20 | * |
21 | 21 | * namespace OpenCensus\Trace; |
@@ -52,7 +52,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_OpenCensusTraceContext_construct, 0, 0, 1) |
52 | 52 | ZEND_END_ARG_INFO(); |
53 | 53 |
|
54 | 54 | /** |
55 | | - * Initializer for OpenCensus\Trace\Context |
| 55 | + * Initializer for OpenCensus\Trace\SpanContext |
56 | 56 | * |
57 | 57 | * @param array $contextOptions |
58 | 58 | */ |
@@ -105,19 +105,19 @@ static PHP_METHOD(OpenCensusTraceContext, traceId) { |
105 | 105 | RETURN_ZVAL(val, 1, 0); |
106 | 106 | } |
107 | 107 |
|
108 | | -/* Declare method entries for the OpenCensus\Trace\Context class */ |
| 108 | +/* Declare method entries for the OpenCensus\Trace\SpanContext class */ |
109 | 109 | static zend_function_entry opencensus_trace_context_methods[] = { |
110 | 110 | PHP_ME(OpenCensusTraceContext, __construct, arginfo_OpenCensusTraceContext_construct, ZEND_ACC_PUBLIC | ZEND_ACC_CTOR) |
111 | 111 | PHP_ME(OpenCensusTraceContext, spanId, NULL, ZEND_ACC_PUBLIC) |
112 | 112 | PHP_ME(OpenCensusTraceContext, traceId, NULL, ZEND_ACC_PUBLIC) |
113 | 113 | PHP_FE_END |
114 | 114 | }; |
115 | 115 |
|
116 | | -/* Module init handler for registering the OpenCensus\Trace\Context class */ |
| 116 | +/* Module init handler for registering the OpenCensus\Trace\SpanContext class */ |
117 | 117 | int opencensus_trace_context_minit(INIT_FUNC_ARGS) { |
118 | 118 | zend_class_entry ce; |
119 | 119 |
|
120 | | - INIT_CLASS_ENTRY(ce, "OpenCensus\\Trace\\Context", opencensus_trace_context_methods); |
| 120 | + INIT_CLASS_ENTRY(ce, "OpenCensus\\Trace\\Ext\\SpanContext", opencensus_trace_context_methods); |
121 | 121 | opencensus_trace_context_ce = zend_register_internal_class(&ce); |
122 | 122 |
|
123 | 123 | zend_declare_property_null(opencensus_trace_context_ce, "spanId", sizeof("spanId") - 1, ZEND_ACC_PROTECTED TSRMLS_CC); |
|
0 commit comments