<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Gabriel Nascimento Costa on Medium]]></title>
        <description><![CDATA[Stories by Gabriel Nascimento Costa on Medium]]></description>
        <link>https://medium.com/@gabriel.costa_62452?source=rss-d0fee9368d2d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*8gDd8zupDXprvYxVi4Rk4w.png</url>
            <title>Stories by Gabriel Nascimento Costa on Medium</title>
            <link>https://medium.com/@gabriel.costa_62452?source=rss-d0fee9368d2d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 23:49:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gabriel.costa_62452/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[What is the Difference between API Observability and API Monitoring]]></title>
            <link>https://medium.com/linkapi-solutions/what-is-the-difference-between-api-observability-and-api-monitoring-2b29545a3b06?source=rss-d0fee9368d2d------2</link>
            <guid isPermaLink="false">https://medium.com/p/2b29545a3b06</guid>
            <category><![CDATA[monitoring]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[observability]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[linkapi]]></category>
            <dc:creator><![CDATA[Gabriel Nascimento Costa]]></dc:creator>
            <pubDate>Wed, 11 Nov 2020 14:17:15 GMT</pubDate>
            <atom:updated>2020-12-05T15:33:51.031Z</atom:updated>
            <content:encoded><![CDATA[<h4>What’s their importance for building successful and scalable APIs and how they’re being used inside LinkApi</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vCjgOCVMj_vGi_aoO3zAbA.png" /></figure><p>The API market is experiencing a fast growth rate in the past years. Every piece of software built today either uses an API or is an API. They have become an essential element in today’s digital economy and along with that the need to understand precisely how to observe them grow accordingly.</p><p>In this article, we’ll talk about the definition of API monitoring and observability as well as the difference between them, their importance for building successful and scalable APIs and how they’re being used inside LinkApi.</p><h4>What are API Monitoring and Observability?</h4><p>For starters, the Site Reliability Engineering <a href="https://landing.google.com/sre/sre-book/toc/">(SRE)</a> book states:</p><blockquote>Monitoring is Collecting, processing, aggregating, and displaying real-time quantitative data about a system, such as query counts and types, error counts and types, processing times, and server lifetimes.</blockquote><p>Following this definition, both API monitoring and observability are ways of monitoring that are used to monitor application program interfaces (APIs) to gain insight into their availability, performance, and proper functionality. They allow you to see how your APIs are performing, how they are being used, and how they are driving business value.</p><p>They may appear to be different names to say the same thing, however, the two of them have different ways of giving you insight of your API, and that’s what we’re going to see now.</p><h3>API Monitoring</h3><p>Starting with the tradition way of monitoring APIs, also know as <strong>API Monitoring. </strong>API monitoring<strong> </strong>is a way of monitoring that allow teams to watch and understand the state of their APIs, or even systems depending on where it’s being. In other words, monitoring is based on gathering predefined sets of metrics or logs.</p><p>While the traditional API monitoring allows you to check for your API status, errors and timeouts, it’s also intrinsically limited for being a <strong>black-box</strong> form of monitoring.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*9aKWkuOiW_auz8O7nlaT6Q.png" /></figure><h4>Black-box monitoring</h4><p>Black-box monitoring is a form of monitoring made by testing externally visible behavior as a user would see it. In other words, it’s not that much different from having to guess which parts of your API may cause problems as it relies on making assumptions about what can be broken before it happens.</p><p>The downside of this is that you have to manually write the checks you need ahead of time and in the end of the day your API monitoring will only be able to check on the traffic that your tests generates, not an actual customer API traffic.</p><h3>API Observability</h3><p>On the other hand, API observability is all about making our API observable rather than only being able to debug what we’d thought to log or monitor in advance. Unlike traditional monitoring, API observability is a form of <strong><em>white-box</em> monitoring.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*JJ29yTO9BIgoNSwe7sXKDw.png" /></figure><h4>White-box monitoring</h4><p>The idea of a white-box invokes a feeling of transparency, it is a form of monitoring based on metrics exposed by the internals of the system, so it requires an agent or SDK, such as LinkApi, to passively log API traffic to an observability service in order to allows teams to actively debug their system.</p><p>Observability is based on exploring properties and patterns not defined in advance, the core of observability breaks down into three key areas: <strong>structured logs</strong>, <strong>metrics</strong>, and<strong> traces.</strong></p><p>To give you a better explanation of those pillars, we’ll see how they’re used inside LinkApi monitoring system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MBCmP0oUkHMLe4vzQcEqwQ.png" /></figure><h4>Structured Logs</h4><p>Structured logs give your API the ability to inspect calls in real-time for debugging and auditing. API logs show you the exact calls in an instant in time. Because an API is by definition structured unlike traditional logging, API logs can also be used for generating aggregations and metrics while maintaining context.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uYkujsiGjRwOwDl5E1uqbw.png" /><figcaption>LinkApi logs</figcaption></figure><p>LinkApi structure logs you have the flexibility to configure the data you want to log, this data may or not be emitted by each process and may contain a mixture of information, ranging from records of individual user queries to debugging information generically associated with our service.</p><h4>Metrics</h4><p>The objective of metrics is to aggregate-type data about the performance of services, API metrics enable you to monitor both engineering and business KPIs such as performance and customer usage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8j3AJA7GzeFhTjNxfpIBkQ.png" /><figcaption>LinkApi metrics</figcaption></figure><p>Inside LinkApi, metrics allow you to have each request’s detailed logs, monitoring access, data traffic, performance and more. With that you can observe which resources of your API are most used, find information about errors and allow you to prevent them from happening.</p><h4>Traces</h4><p>And finally, traces allow individual execution flows to be traced through the system, including timing and dependency details.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rYrBl5SOLWrtjsDjwXCthQ.png" /><figcaption>LinkApi tracing</figcaption></figure><p>The tracing system in LinkAPI platform, together with the endpoints details inside metrics, make it easy to understand how long different services take to respond and where timing errors can occur, enabling you to further explore which logs to look at for a particular session or related set of API calls.</p><h3>Closing thoughts</h3><p>Nowadays APIs are everywhere, the API market doesn’t stop growing and neither does its importance inside the software ecosystem, however, API monitoring can only do so much for you. If your team needs to answer arbitrary questions required for data-driven engineering and business teams, consider using an <strong>API</strong> <strong>observability </strong>approach to your API or hiring an platform who can do that for you, such as LinkApi.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2b29545a3b06" width="1" height="1" alt=""><hr><p><a href="https://medium.com/linkapi-solutions/what-is-the-difference-between-api-observability-and-api-monitoring-2b29545a3b06">What is the Difference between API Observability and API Monitoring</a> was originally published in <a href="https://medium.com/linkapi-solutions">LinkApi Solutions</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Improve your commits with conventional commits]]></title>
            <link>https://medium.com/linkapi-solutions/improve-your-commits-with-conventional-commits-72134a852d19?source=rss-d0fee9368d2d------2</link>
            <guid isPermaLink="false">https://medium.com/p/72134a852d19</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[conventional-commits]]></category>
            <dc:creator><![CDATA[Gabriel Nascimento Costa]]></dc:creator>
            <pubDate>Wed, 21 Oct 2020 18:33:54 GMT</pubDate>
            <atom:updated>2020-10-21T18:33:54.309Z</atom:updated>
            <content:encoded><![CDATA[<h3>Improve your commits with Conventional Commits</h3><h4>Learn how to use CommitLint and Husky to add structure and improve the readability of your commits</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rgEpGMRh2i93o54b.jpg" /></figure><p>If you’ve been in the world of development for some time it is very likely that the image above feels familiar to you, every software developer already wrote bad commits at some point in their career, and who can shame them?</p><p>Writing consistent, meaningful commit messages are hard, that’s why in this guide we’ll learn a way to improve commits messages with Conventional Commits.</p><h3>What are Conventional Commits?</h3><p>The <a href="https://www.conventionalcommits.org/">Conventional Commits</a> specification is a simple convention on top of commit messages. It provides an easy set of rules for creating an explicit commit history.</p><p>Below you can see the structure that Conventional Commits follows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*HWJzzMqxUOuR-9TMObKr2Q.png" /></figure><h4><strong><em>&lt;type&gt;</em></strong></h4><p>The <strong>type </strong>is intended to describe the category of your change. The most common types are: build, chore, ci, docs, feat, fix, perf, refactor, revert, style and test.</p><h4>[optional scope]</h4><p>The second, optional part is the so called <strong>scope</strong>. The scope Describes the module affected by your change.</p><h4>&lt;description&gt;</h4><p>The <strong>description </strong>is where describe the alterations made by your commit.</p><p>The easiest way to get an idea of what it looks like is by seeing some examples. Here are some minimal commit messages satisfying the rules.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QzWD7g-xMfu91gQeN-RdSw.png" /></figure><p>You can learn more about how to format your commits by reading the conventional commits <a href="https://www.conventionalcommits.org/en/v1.0.0/"><em>specification</em></a>.</p><h3>Husky and CommitLint</h3><p>Now that you know about Conventional Commits you can already start following the specification rules by your own, but easier said than done, right? To help us maintain a good commit pattern we can use two Javascript libraries, <strong>CommitLint</strong> and<strong> Husky,</strong> first let’s talk about CommitLint.</p><p>CommitLint checks if our commit messages meet the <a href="https://conventionalcommits.org/">conventional commit format</a>, so we don’t have to worry about making a mistake, for as long as we set the right rules CommitLint will be there for us.</p><p>If you’re programming in a language other than Javascript don’t worry, there are a lot of other libraries like CommitLints for other languages, you just need to find the one that suits your needs.</p><h3>Installing CommitLint</h3><p>Let’s start by installing CommitLint and their CLI on your repository as a development dependency.</p><h4>Windows</h4><pre>npm install --save-dev @commitlint/config-conventional</pre><h4>Mac/Linux</h4><pre>npm install --save-dev @commitlint/{config-conventional,cli}</pre><p>Now let’s configure commitlint to follow conventional commits specification.</p><p>First start by creating commitlint.config.js file, you can do it either manually or by your terminal.</p><pre>echo &quot;module.exports = {extends: [&#39;@commitlint/config-conventional&#39;]}&quot; &gt; commitlint.config.js</pre><p>Inside our commitlint.config.js we can set some rules, for this article I’ll use the rules from <a href="https://github.com/conventional-changelog/commitlint/blob/master/@commitlint/config-conventional/index.js"><strong>commitlint’s rules configuration example</strong></a>, but feel free to check their<strong> </strong><a href="https://github.com/conventional-changelog/commitlint/blob/master/docs/reference-rules.md"><strong>docs</strong></a> for a better explanation about all different rules and settings that commitlint have for you.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/52d9bca0a783823dadde109f75f695a1/href">https://medium.com/media/52d9bca0a783823dadde109f75f695a1/href</a></iframe><p>Now that we’re done with CommitLint you could start using their CLI to check our commits, however, I prefer using Husky to do that automatically for me.</p><h4>Husky</h4><p>Husky is a library that allows us to use Git Hooks on our commits. Git hooks permit custom scripts to be ran on your repository before a set action, like a commit or a push. We’ll use this in conjunction to CommitLint to check if our Commit is following the rules we’ve set on our commitlint config file.</p><h4>Setup</h4><pre>npm install husky --save-dev</pre><p>Now let’s tell our package.json file to use Husky hooks with commitlint rules:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cedb9b9c54aa59e2de6ce803a4e9a6f2/href">https://medium.com/media/cedb9b9c54aa59e2de6ce803a4e9a6f2/href</a></iframe><p>Now we can test if everything is working.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4QLDYyvFrZarK01w9fmUsg.png" /></figure><h3>Conclusion</h3><p>Good commit messages are important for maintaining any long-term project. It helps you to keep track of all of your commits and know which changes were made in each commit and with Conventional Commits you can start doing that extremely fast, I highly recommend you give it a try and learn more about it on their <a href="https://www.conventionalcommits.org/"><strong>official site</strong></a>.</p><p>If you wanna check the configuration files I created on this project then you can get them on my <a href="https://medium.com/r?url=https%3A%2F%2Fgithub.com%2FGabrielncosta%2Fconventional-commits-configuration"><strong>GitHub’s repository</strong></a><strong>.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=72134a852d19" width="1" height="1" alt=""><hr><p><a href="https://medium.com/linkapi-solutions/improve-your-commits-with-conventional-commits-72134a852d19">Improve your commits with conventional commits</a> was originally published in <a href="https://medium.com/linkapi-solutions">LinkApi Solutions</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>