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 ae29c56 commit 26f28a2
Showing 1 changed file with 7 additions and 7 deletions.
Expand Up @@ -13,7 +13,7 @@ redirects:

## Syntax

```
```py
newrelic.agent.web_transaction(application=None, name=None, group=None, scheme=None, host=None, port=None, request_method=None, request_path=None, query_string=None, headers=None)
```

Expand All @@ -38,7 +38,7 @@ For more on the differences between and uses of these function forms, see [Varia

### Decorator parameters [#main-params]

```
```py
newrelic.agent.web_transaction(application=None, name=None, group=None, scheme=None, host=None, port=None, request_method=None, request_path=None, query_string=None, headers=None)
```

Expand Down Expand Up @@ -178,15 +178,15 @@ Parameters for these calls:
</td>

<td>
Optional. The HTTP request headers An iterable of \[name, value] two-item iterables or dict of &#x7B;name:value}, where name is the header name, and value is the header value
Optional. The HTTP request headers An iterable of \[name, value] two-item iterables or dict of `{name:value}`, where name is the header name, and value is the header value
</td>
</tr>
</tbody>
</table>

### Wrapper parameters: [#wrapper-params]

```
```py
newrelic.agent.WebTransactionWrapper(wrapped, application=None, name=None, group=None, scheme=None, host=None, port=None, request_method=None, request_path=None, query_string=None, headers=None)
```

Expand Down Expand Up @@ -222,7 +222,7 @@ newrelic.agent.WebTransactionWrapper(wrapped, application=None, name=None, group

### Path-based parameters: [#path-based-params]

```
```py
newrelic.agent.wrap_web_transaction(module, object_path, application=None, name=None, group=None, scheme=None, host=None, port=None, request_method=None, request_path=None, query_string=None, headers=None)
```

Expand Down Expand Up @@ -274,7 +274,7 @@ newrelic.agent.wrap_web_transaction(module, object_path, application=None, name=

Here's an example of using the web_transaction decorator:

```
```py
@newrelic.agent.web_transaction()
def get():
...
Expand All @@ -284,7 +284,7 @@ def get():

An example of using the `WebTransactionWrapper`:

```
```py
task = newrelic.agent.WebTransactionWrapper(get_next_task())
result = task(*args, **kwargs)
```

0 comments on commit 26f28a2

Please sign in to comment.