Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Make sink_http_uri settable in php #155

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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 <me@tobyan.com>
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