-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make protobuf implementation optional (#949)
* Make google/protobuf an optional dependency * Update the README with more information on installing protobuf implementation * Add some extra documentation in the OTLP exporter library * Update proto/otel/README.md
- Loading branch information
Showing
2 changed files
with
22 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,21 @@ | ||
# OpenTelemetry protobuf files | ||
|
||
## Protobuf Runtime library | ||
|
||
There exist two protobuf runtime libraries that offer the same set of APIs, allowing developers to choose the one that | ||
best suits their needs. | ||
|
||
The first and easiest option is to install the Protobuf PHP Runtime Library through composer. This can be the easiest | ||
way to get started quickly. Either run `composer require google/protobuf`, or update your `composer.json` as follows: | ||
|
||
```json | ||
"require": { | ||
"google/protobuf": "^v3.3.0" | ||
} | ||
``` | ||
|
||
Alternatively, and the recommended option for production is to install the Protobuf C extension for PHP. The extension | ||
makes both exporters _significantly_ more performant. This can be easily installed with the following command: | ||
```sh | ||
$ sudo pecl install protobuf | ||
``` |
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