Skip to content

Conversation

@toby1991
Copy link

@toby1991 toby1991 commented Aug 4, 2020

0x00 Purpose

When we have multi environment, such as Development or Production, we want to use different jaeger/zipkin for tracing, so this feature will let you make it!

0x01 Usage

ini_set('molten.sink_http_uri', 'http://127.0.0.1:9411/api/v1/spans')

0x02 Example

php -d extension=molten.so -d molten.enable=1 -d molten.open_report=1 -d molten.span_format="zipkin" -d molten.sink_type=4 -d molten.tracing_cli=1 -d molten.sampling_rate=1 -r 'ini_set("molten.service_name", "this_is_my_service");ini_set("molten.sink_http_uri", "http://127.0.0.1:9411/api/v1/spans");$c=curl_init("http://localhost:12345");curl_exec($c);'

## 0x00 Purpose
When we have multi environment, such as `Development` or `Production`, we want to use different `jaeger`/`zipkin` for tracing, so this feature will let you make it!

## 0x01 Usage
```php
ini_set('molten.sink_http_uri', 'http://127.0.0.1:9411/api/v1/spans')
```

## 0x02 Example
```shell
php -d extension=molten.so -d molten.enable=1 -d molten.open_report=1 -d molten.span_format="zipkin" -d molten.sink_type=4 -d molten.tracing_cli=1 -d molten.sampling_rate=1 -r 'ini_set("molten.service_name", "this_is_my_service");ini_set("molten.sink_http_uri", "http://127.0.0.1:9411/api/v1/spans");$c=curl_init("http://localhost:12345");curl_exec($c);'
```

Signed-off-by: Toby Yan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant