Skip to content

Commit

Permalink
chore: add language identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
brnhensley committed May 29, 2023
1 parent 26f28a2 commit cb6264f
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ redirects:

## Syntax

```
```py
newrelic.agent.wsgi_application(application=None, name=None, group=None, framework=None)
```

Expand All @@ -35,7 +35,7 @@ For an explanation of the reasons to use the decorator versus the wrappers, see

### Decorator parameters

```
```py
newrelic.agent.wsgi_application(application=None, name=None, group=None, framework=None)
```

Expand All @@ -59,7 +59,7 @@ The `wsgi_application` decorator uses these parameters:
<td>
`application`

_string, application object_
_string_, or _application object_
</td>

<td>
Expand Down Expand Up @@ -111,7 +111,7 @@ The `wsgi_application` decorator uses these parameters:

### Wrapper parameters

```
```py
newrelic.agent.WSGIApplicationWrapper(wrapped, application=None, name=None, group=None, framework=None)
```

Expand Down Expand Up @@ -147,7 +147,7 @@ This takes all of the [parameters](#decorator-parameters) required by `wsgi_appl

### Path-based wrapper parameters [#path-based-parameters]

```
```py
newrelic.agent.wrap_wsgi_application(module, object_path, application=None, name=None, group=None, framework=None)
```

Expand Down Expand Up @@ -199,7 +199,7 @@ In addition to the [parameters](#decorator-parameters) required by `wsgi_applica

An example of the decorator being called without the optional `application` parameter:

```
```py
@newrelic.agent.wsgi_application()
def application(environ, start_response):
status = '200 OK'
Expand All @@ -216,7 +216,7 @@ def application(environ, start_response):

An example of using the `WSGIApplicationWrapper`, which may be necessary if the `wsgi_application` decorator doesn't work:

```
```py
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mysite.settings")
from django.core.wsgi import get_wsgi_application
Expand All @@ -229,7 +229,7 @@ application = newrelic.agent.WSGIApplicationWrapper(application)

An example of using the path-based wrapper:

```
```py
import newrelic.agent
newrelic.agent.initialize('newrelic.ini')

Expand Down

0 comments on commit cb6264f

Please sign in to comment.