Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6957 from umaannamalai/python-codestream-integration
Add CodeStream Integration Docs for Python Agent
- Loading branch information
Showing
3 changed files
with
157 additions
and
0 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
108 changes: 108 additions & 0 deletions
108
...cs/apm/agents/python-agent/supported-features/python-codestream-integration.mdx
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 |
---|---|---|
@@ -0,0 +1,108 @@ | ||
--- | ||
title: New Relic CodeStream integration | ||
tags: | ||
- Agents | ||
- Python agent | ||
- Supported features | ||
metaDescription: The Python agent can be integrated with New Relic CodeStream to provide code level metrics. | ||
redirects: | ||
- /docs/agents/python-agent/supported-features/python-codestream-integration | ||
- /docs/python/python-codestream-integration | ||
--- | ||
|
||
Display context-sensitive APM data directly in your IDE by integrating [New Relic CodeStream](docs/codestream/start-here/what-is-codestream) with the Python agent. Visualize code-level production tleemetry in your editor as your write and review code with this integration. | ||
|
||
## Getting started | ||
|
||
First, [install](docs/codestream/start-here/install-codestream) the New Relic CodeStream extension into your supported IDE of choice and login. | ||
|
||
<Callout variant="important"> | ||
The New Relic CodeStream integration is available in Python Agent version 7.10.0.175 and higher and is enabled by default. To change this configuration, check out our documentation. | ||
</Callout> | ||
|
||
## Agent attributes | ||
|
||
The Python agent reports and attaches the following attributes to spans produced by your application: | ||
|
||
<table> | ||
<thead> | ||
<tr> | ||
<th> | ||
**Name** | ||
</th> | ||
|
||
<th> | ||
**Description** | ||
</th> | ||
|
||
<th> | ||
**Example** | ||
</th> | ||
</tr> | ||
</thead> | ||
|
||
<tbody> | ||
<tr> | ||
<td> | ||
`code.function` | ||
</td> | ||
|
||
<td> | ||
The name of the instrumented function | ||
</td> | ||
|
||
<td> | ||
validate_credentials | ||
</td> | ||
</tr> | ||
|
||
<tr> | ||
<td> | ||
`code.filepath` | ||
</td> | ||
|
||
<td> | ||
The absolute path to the source code file in which `code.function` is defined | ||
</td> | ||
|
||
<td> | ||
/usr/local/apps/test-app/main.py | ||
</td> | ||
</tr> | ||
|
||
<tr> | ||
<td> | ||
`code.lineno` | ||
</td> | ||
|
||
<td> | ||
The line number where `code.function` is defined in code.filepath | ||
</td> | ||
|
||
<td> | ||
639 | ||
</td> | ||
</tr> | ||
|
||
<tr> | ||
<td> | ||
`code.namespace` | ||
</td> | ||
|
||
<td> | ||
The namespace (class/ module name) in which `code.function` is defined | ||
</td> | ||
|
||
<td> | ||
example.service.MyService | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
<Callout variant="important"> | ||
Not every function in your application code will be instrumented with the above attributes. In some cases, the agent will directly wrap base framework code (ie. Django, Flask, etc.) that is invoked within your application and will not display within your IDE. | ||
|
||
</Callout> | ||
|
||
|
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