newrelic.com
Open in
urlscan Pro
151.101.2.217
Public Scan
Submitted URL: https://get.newrelic.com/MzQxLVhLUC0zMTAAAAGHKTQqCN-PJvR9uKtZlumul526e4wcARCi58H-t3GcrwVN6IdiqYOzl8MhiiLeaFmSA403V7o=
Effective URL: https://newrelic.com/blog/nerdlog/codestream-code-level-metrics?utm_source=marketo&utm_medium=email&utm_campaign=amer...
Submission: On September 29 via api from US — Scanned from DE
Effective URL: https://newrelic.com/blog/nerdlog/codestream-code-level-metrics?utm_source=marketo&utm_medium=email&utm_campaign=amer...
Submission: On September 29 via api from US — Scanned from DE
Form analysis
2 forms found in the DOMPOST /search
<form class="flex relative" method="post" action="/search" __bizdiag="-906336856" __biza="WJ__">
<label class="sr-only" for="header-search">Search</label>
<input class="js-full-text-search col-start-1 row-start-1 w-full !pr-16" type="search" id="header-search" name="search" placeholder="What are you looking for?" autocomplete="on" autocorrect="off" autocapitalize="off" value="">
<div class="absolute right-10 flex items-center justify-center h-full w-16">
<button class="js-search-form-submit btn-text">
<span aria-hidden="true">
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M13.93 20.861A6.93 6.93 0 1 0 13.93 7a6.93 6.93 0 0 0 0 13.861Z" stroke="currentColor" stroke-width="2" stroke-linejoin="round"></path>
<path d="m18.782 18.782 3.466 3.465.877.878 1.125 1.125.75.75" stroke="currentColor" stroke-width="2" stroke-linejoin="round"></path>
</svg>
</span>
<span class="sr-only">Submit</span>
</button>
</div>
<button class="js-search-form-cancel btn-text !bg-transparent text-nr-black dark:text-nr-white" aria-label="close" type="button">
<span aria-hidden="true">
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="m8.928 8.928 14.144 14.144m0-14.144L8.928 23.072" stroke="currentColor" stroke-width="2" stroke-linejoin="round"></path>
</svg>
</span>
</button>
</form>
GET /blog/search
<form class="relative w-full max-w-xl large:max-w-3xl" method="get" action="/blog/search" __bizdiag="115" __biza="WJ__">
<label class="sr-only" for="blog-header-search-input"> Search the blog </label>
<input class="js-blog-header-search-input w-full !pr-20" id="blog-header-search-input" type="search" placeholder="Type your search here" name="s">
<button class="js-blog-header-search-submit absolute right-0 top-0 flex items-center justify-center h-full w-16 p-0 bg-transparent text-nr-black" type="submit">
<span aria-hidden="true">
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M13.93 20.861A6.93 6.93 0 1 0 13.93 7a6.93 6.93 0 0 0 0 13.861Z" stroke="currentColor" stroke-width="2" stroke-linejoin="round"></path>
<path d="m18.782 18.782 3.466 3.465.877.878 1.125 1.125.75.75" stroke="currentColor" stroke-width="2" stroke-linejoin="round"></path>
</svg>
</span>
<span class="sr-only">Submit</span>
</button>
</form>
Text Content
Skip to main content Discover the top benefits of observability See the research Search toggle Main navigation menu, 5 items Search Submit * Platform New Relic Put all over the place in its place—monitor your entire stack on a single platform. Explore the platform Explore the platform * 470 integrations pre-built for you Full-stack monitoring * Application Monitoring (APM) * Infrastructure Monitoring * Kubernetes & Pixie * Log Management * Network Monitoring * Browser Monitoring * Mobile Monitoring * Synthetics Monitoring * Serverless Monitoring * Model Performance Monitoring Observability Experiences * CodeStream * Error Tracking * Vulnerability Management * Explorer * AIOps Data Ingest & Insights * Integrations * Dashboards * Alerts * OpenTelemetry * Pricing * Solutions Featured Customers * Bangkok Bank Scales rapidly and seamlessly to meet increased future demand * Workiva Takes observability to a new level * Viewpoint Improves engineering efficiency and customer transparency Read all case studies Read all case studies By use case * DevOps * Cloud Adoption * Tool Consolidation * Digital Customer Experience * Open Source By Industry * Ecommerce and Retail * Healthcare * Media & Entertainment * New Relic for Startups * Nonprofit * Public Sector By Technology * Amazon Web Services * Google Cloud Platform * Microsoft Azure * Pivotal Cloud Foundry * Prometheus Monitoring * SAP Monitoring * Docs * Help Center Quick and easy set up Get more value from your data with hundreds of quickstarts that integrate with just about anything. Be up and running in minutes. Get started Get started Build * Developer Hub Everything you need to build on New Relic * NerdLog Product updates and live demos * Open Source Projects Open source projects we maintain and support Learn * Blog Industry updates, how-tos and best practices * New Relic University Training courses and certifications * Resources eBooks, datasheets, & white papers * Articles Explore observability and technology topics * Events & Webinars Join us for an upcoming event Community and Support * Community Forum Ask a question. Share an answer. * Technical Support Expert support for our global clients * Expert Services Let experts guide you with customized tech support Search toggle Log in Log in Sign up Sign up Log in Log in Sign up Sign up newrelic blog homepage * How to Relic * Best Practices * Culture * News Blog navigation menu, 4 items Toggle blog search * How to Relic * Best Practices * Culture * News newrelic blog homepage * How to Relic * Best Practices * Culture * News Toggle blog search Log in Log in Sign up Sign up Blog navigation menu, 4 items * How to Relic * Best Practices * Culture * News Search the blog Submit Log in Log in Sign up Sign up Observability IMPROVE APP PERFORMANCE WITH GOLDEN SIGNALS IN YOUR IDE WITH NEW RELIC CODESTREAM, OBSERVABILITY DATA MEETS YOU WHERE YOU ARE—IN THE IDE Published Apr 12, 2022 • Updated Sep 13, 2022 • 5 min read By David Hersh By Uma Annamalai When you monitor the four golden signals—response time, throughput, error rate, and saturation—you can quickly see an overview of the health and performance of your application. These metrics were traditionally almost exclusively the domain of Ops, DevOps, or SREs. But what about the application developers—those who are ultimately responsible for the code that builds these services? To understand how your own code is performing and to troubleshoot customer issues, you need rich context and observability solutions that showcase these golden metrics at the service and system levels, and all the way down to methods in the code. Code-level metrics and service-level telemetry give you the ability to see which services and lines of code are impacting your application. CODE-LEVEL METRICS The New Relic CodeStream IDE extension brings software performance into the daily practice of developers by providing a pervasive, always-on view of code-level metrics. The three golden metrics that are applicable to application services are displayed as a line of text, called a CodeLens, above each method in your code, automatically instrumented by the New Relic APM agent. In this example, you can see the golden signals of response time, throughput, and error rate: Select a CodeLens for a set of charts visualizing each of the metrics. You can also get more insight by clicking through to the APM service summary page in New Relic. More importantly, you can also change the service for the code-level metrics that you see. This allows you to see how your code is performing in other environments, such as staging or QA, so you can take a more proactive approach to performance problems. You can get ahead of these issues before they hit production. SERVICE-LEVEL TELEMETRY While seeing how the actual code is performing is arguably the most important thing for your day-to-day work, it’s also important to see the bigger picture. You might think about these questions: * The code I’m responsible for builds a particular service. How is that service performing? * How are the services that are related to mine performing? Unless there’s an incident developers rarely see this view of the world. The observability section of CodeStream changes this old approach. The golden metrics for the services associated with the repo you have open in your IDE are available at a glance. And with just one click, you can see the metrics for any service that calls, or is called by, your service. In this screenshot, you can see an example of the response time, the throughput, and the error rate for a service, the services that it calls, and the services it is called by: With service-level telemetry, you get the big picture, right in your IDE. CODESTREAM VIDEO WALKTHROUGH For a quick walkthrough of these features, check out this Nerd Bytes video: GETTING STARTED WITH CODE-LEVEL METRICS IS EASY Follow these instructions to get started. Note that code-level metrics are currently supported for Python, Ruby, .NET, and Go. Java support is in private preview, so reach out to us at codestream@newrelic.com if you’d like to participate. PHP and Node.js support are on the way! 1. UPDATE YOUR AGENT Update your APM agent to the version that supports code-level metrics. * .NET - Version 9.9.0 or later * Python - Version 7.10.0.175 or later * Ruby - Version 8.10.0 or later * Go - Version 3.18.0 or later For .NET and Go you’ll also need to enable code-level metrics in the agent configuration. 2. INSTALL THE CODESTREAM EXTENSION Install the CodeStream extension as you would any other extension for VS Code or a JetBrains IDE by going to the marketplace in your IDE. Make sure you’re running the latest version (v14.0 or later). * CodeStream for VS Code * CodeStream for JetBrains * CodeStream for Visual Studio 3. SIGN UP FOR CODESTREAM After installing the extension, you’ll be prompted to create a CodeStream account, even if you’re already a New Relic user. CodeStream offers several signup options, but we suggest that you select Sign up with New Relic. In one step, you’ll be signed up for CodeStream and connected to your New Relic account. You’ll be prompted to enter your New Relic User API Key. 4. ASSOCIATE A REPOSITORY WITH YOUR APM SERVICE Open a repository in your IDE that corresponds to an APM service where you’d like to see code-level metrics. If the repository isn’t already associated with the APM service, you’ll get a message in the Observability section of CodeStream prompting you to make this association. If you have multiple services that correspond to this repo (such as different services for different environments), you can make additional repo<>service associations on the Summary page for your APM service in New Relic. Go to the Repositories section in the bottom right. 5. OPEN A FILE AND LOOK FOR EACH CODELENS Open a source file from your repository and look for the golden metrics in a CodeLens above each instrumented method. NEXT STEPS To learn more about what you can do with CodeStream, see the CodeStream user guide. If you're not using New Relic yet, sign up for a free account. It includes 100 GB/month of free data ingest, one free full-access user, and unlimited free basic users. RELATED TOPICS Observability Integrations DevOps Consolidating Tools -------------------------------------------------------------------------------- By David Hersh David Hersh, Senior Director, Product Management at New Relic CodeStream, is a serial entrepreneur and product manager. He was a co-founder, and head of product development at CodeStream. Dave has a B.S. in Information Systems and an MBA from Carnegie Mellon University. A recognized expert in the design of collaboration and social networking services, Dave also was a co-founder & Chief Product Officer of Glip, a team collaboration platform acquired by RingCentral in 2015, and Multiply.com, a social commerce platform acquired by Naspers in 2010. He was also a partner at Commissioner.com, one of the first online fantasy sports platforms, which was acquired by CBS in 1999. By Uma Annamalai Uma Annamalai is a software engineer at New Relic. The views expressed on this blog are those of the author and do not necessarily reflect the views of New Relic. Any solutions offered by the author are environment-specific and not part of the commercial solutions or support offered by New Relic. Please join us exclusively at the Explorers Hub (discuss.newrelic.com) for questions and support related to this blog post. This blog may contain links to content on third-party sites. By providing such links, New Relic does not adopt, guarantee, approve or endorse the information, views or products available on such sites. Get started with access to New Relic, free forever. Sign up today Sign up today Share this article * Share on Twitter * Share on Reddit * Share on Facebook * Share on LinkedIn In this article * Code-level metrics * Service-level telemetry * CodeStream video walkthrough * Getting started with code-level metrics is easy * Next steps RELATED Observability Extend observability and code discussion to your IDE with New Relic CodeStream 4 min read Oct 21, 2021 Read Article Open Source 9 ways to improve your workflow with CodeStream 4 min read Oct 28, 2021 Read Article Observability Discover and debug errors with CodeStream 4 min read Apr 7, 2022 Read Article Company * About Us * Leadership * Careers * Social Impact * Newsroom * Customers * Partner Program * Investor Relations * Suppliers Portal * Security * ESG * Contact Us Follow Us * * * * * * * Download the New Relic App * Get it on Google Play * * Terms of Service * DMCA Policy * Privacy Policy * Cookie Policy * UK Slavery Act of 2015 * 日本語 * Français * Deutsch * 한국어 ©2008-22 New Relic, Inc. All rights reserved