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

adding php composer note #3017

Merged
merged 3 commits into from
Jul 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions content/en/docs/instrumentation/php/automatic.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Automatic Instrumentation
linkTitle: Automatic
weight: 20
spelling: cSpell:ignore userland phar autoload tracecontext myapp configurator
spelling: cSpell:ignore packagist pecl shortcode unindented democlass
spelling: cSpell:ignore packagist pecl shortcode unindented democlass autoloading
---

Automatic instrumentation with PHP requires at least PHP 8.0, and the
Expand All @@ -15,8 +15,12 @@ method runs.
{{% alert title="Important" color="warning" %}}Installing the OpenTelemetry
extension by itself will not generate traces. You must also install one or more
[packages](/ecosystem/registry/?component=instrumentation&language=php) for the
frameworks and libraries that you are using, or alternatively write your
own.{{% /alert %}}
frameworks and libraries that you are using, or alternatively write your own.

You also _must_ use
[composer autoloading](https://getcomposer.org/doc/01-basic-usage.md#autoloading),
as this is the mechanism all auto-instrumentation packages use to register
themselves. {{% /alert %}}

## Example

Expand Down
4 changes: 4 additions & 0 deletions static/refcache.json
Original file line number Diff line number Diff line change
Expand Up @@ -1511,6 +1511,10 @@
"StatusCode": 200,
"LastSeen": "2023-06-30T11:44:53.968424-04:00"
},
"https://getcomposer.org/doc/01-basic-usage.md#autoloading": {
"StatusCode": 200,
"LastSeen": "2023-07-12T02:40:31.746997332Z"
},
"https://getcomposer.org/download/": {
"StatusCode": 200,
"LastSeen": "2023-06-29T16:18:18.163861-04:00"
Expand Down