<?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 Angith Jayan on Medium]]></title>
        <description><![CDATA[Stories by Angith Jayan on Medium]]></description>
        <link>https://medium.com/@angithcjjaas?source=rss-60a5cebc816f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*f_HQA-5K2h9V_P-Qa8-HEA.jpeg</url>
            <title>Stories by Angith Jayan on Medium</title>
            <link>https://medium.com/@angithcjjaas?source=rss-60a5cebc816f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 14:36:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@angithcjjaas/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[Integrating OpenTelemetry with Instana for Distributed Tracing]]></title>
            <link>https://medium.com/ibm-cloud/integrating-opentelemetry-with-instana-for-distributed-tracing-995ae0f9281e?source=rss-60a5cebc816f------2</link>
            <guid isPermaLink="false">https://medium.com/p/995ae0f9281e</guid>
            <category><![CDATA[opentelemetry-collector]]></category>
            <category><![CDATA[ibm]]></category>
            <category><![CDATA[distributed-tracing]]></category>
            <category><![CDATA[instana]]></category>
            <category><![CDATA[opentelemetry]]></category>
            <dc:creator><![CDATA[Angith Jayan]]></dc:creator>
            <pubDate>Mon, 15 Jun 2026 06:33:32 GMT</pubDate>
            <atom:updated>2026-06-15T06:33:32.983Z</atom:updated>
            <content:encoded><![CDATA[<p>When working with distributed systems, you need visibility into what’s happening across services. OpenTelemetry has emerged as the standard for generating telemetry data, while Instana provides a powerful backend to analyse and visualise that data.</p><p>When I started exploring OpenTelemetry with Instana, my primary goal was simple: get traces flowing end‑to‑end with minimal friction, and then refine the setup as complexity increased. I began with the simplest possible approach, exporting traces directly from the application to Instana. Once that was working, I experimented with routing traces through an OpenTelemetry Collector using both HTTP and gRPC exporters. That second setup added more flexibility, especially when testing configuration changes locally without modifying application code.</p><p>In this post, I’ll walk through both approaches, explain when each makes sense, and highlight the practical differences based on hands‑on experience.</p><h4>Why Instana with OpenTelemetry?</h4><p>OpenTelemetry and Instana complement each other well.</p><p>OpenTelemetry provides a vendor‑neutral way to generate telemetry data, while Instana offers a production‑ready observability backend with deep insights into distributed systems.</p><p>Using them together gives several practical advantages:</p><ul><li><strong>Enterprise readiness</strong> — Instana provides automatic service mapping, dependency analysis, and backend insights that help teams quickly identify performance bottlenecks in production environments</li><li><strong>Vendor neutrality</strong> — instrumentation stays the same even if the backend changes</li><li><strong>Standardised telemetry </strong>— consistent tracing across services and languages</li><li><strong>Strong ecosystem</strong> — OpenTelemetry libraries are widely available and actively maintained</li><li><strong>Native OTLP support </strong>— Instana supports OTLP directly, without custom adapters</li></ul><p>This makes it easy to start simple and evolve your observability setup over time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jIkH_e5JNTzjy42Y" /><figcaption>Photo by <a href="https://unsplash.com/@lukechesser?utm_source=medium&amp;utm_medium=referral">Luke Chesser</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>OTLP: HTTP vs gRPC</h4><p>The OpenTelemetry Protocol (OTLP) defines how telemetry data is transmitted. It supports two main transport options:</p><ul><li>OTLP/HTTP — Uses HTTP/1.1 or HTTP/2 with Protocol Buffers</li><li>OTLP/gRPC — Uses gRPC (HTTP/2) with Protocol Buffers</li></ul><p>You can use either HTTP or gRPC exporter in a local setup. Since both function equivalently in this scenario, select the exporter that best aligns with your existing infrastructure and preferred configuration approach.</p><h4>Security Considerations</h4><p>When configuring OpenTelemetry exporters, keep these security practices in mind:</p><ul><li><strong>API Key Handling</strong>: Store Instana API keys in environment variables or secrets management systems, never hardcode them in source code.</li><li><strong>TLS by Default</strong>: HTTPS endpoints use TLS automatically. The OpenTelemetry SDK enables TLS by default for secure connections.</li><li><strong>Local Testing Only</strong>: The WithInsecure() option disables TLS and should only be used for local development with the collector. Never use it in production or when connecting directly to Instana.</li></ul><h3><strong>Sending traces directly from your application to Instana</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/259/1*ue1TUAt384af-puoM-aMDA.png" /><figcaption><em>This diagram shows the direct export flow where your application sends traces straight to Instana’s OTLP endpoint without any intermediate components.</em></figcaption></figure><p>This is the simplest possible setup: your application sends traces directly to Instana’s OTLP endpoint.</p><p>I started with this approach because it provides the fastest way to verify that the instrumentation is correct, traces are being generated, and data is successfully reaching Instana.</p><h4><strong>Environment Variable Configuration</strong></h4><p>The easiest setup uses standard OpenTelemetry environment variables:</p><pre>export OTEL_EXPORTER_OTLP_ENDPOINT=&quot;https://&lt;instana-otlp-endpoint&gt;&quot;<br>export OTEL_EXPORTER_OTLP_HEADERS=&quot;x-instana-key=&lt;instana-agent-key&gt;&quot;</pre><p>The OpenTelemetry SDK reads these automatically and configures the exporter. No code changes needed.</p><h4><strong>Programmatic Configuration</strong></h4><p>You can also configure the exporter directly in code. Below is an example using OTLP over HTTP in Go:</p><pre>import (<br>    &quot;context&quot;<br>    &quot;go.opentelemetry.io/otel&quot;<br>    &quot;go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp&quot;<br>    &quot;go.opentelemetry.io/otel/sdk/resource&quot;<br>    sdktrace &quot;go.opentelemetry.io/otel/sdk/trace&quot;<br>    semconv &quot;go.opentelemetry.io/otel/semconv/v1.26.0&quot;<br>)<br><br>func initTracer(ctx context.Context) (*sdktrace.TracerProvider, error) {<br>    // Create OTLP HTTP exporter<br>    exporter, err := otlptracehttp.New(<br>        ctx,<br>        otlptracehttp.WithEndpoint(&quot;instana-otlp-endpoint&quot;),<br>        otlptracehttp.WithHeaders(map[string]string{<br>            &quot;x-instana-key&quot;: &quot;instana-agent-key&quot;,<br>        }),<br>        // TLS is enabled by default for https:// endpoints<br>    )<br>    if err != nil {<br>        return nil, err<br>    }<br><br>    // Define resource attributes<br>    res, err := resource.New(<br>        ctx,<br>        resource.WithAttributes(<br>            semconv.ServiceName(&quot;my-service&quot;),<br>            semconv.ServiceVersion(&quot;1.0.0&quot;),<br>        ),<br>    )<br>    if err != nil {<br>        return nil, err<br>    }<br><br>    // Create tracer provider<br>    tp := sdktrace.NewTracerProvider(<br>        sdktrace.WithBatcher(exporter),<br>        sdktrace.WithResource(res),<br>    )<br><br>    otel.SetTracerProvider(tp)<br>    return tp, nil<br>}</pre><h3><strong>Routing traces through an OpenTelemetry collector</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1015/1*73AYdOM6RYqYVR7C6sRYEQ.png" /><figcaption><em>This diagram illustrates the collector-based flow where traces are routed through an OpenTelemetry Collector before reaching Instana, enabling centralized telemetry processing and configuration.</em></figcaption></figure><p>With an OpenTelemetry Collector, traces pass through an intermediate telemetry pipeline before reaching Instana.</p><p>While this adds another component, it becomes valuable when:</p><ul><li>multiple services are involved</li><li>you want to transform, filter, or batch telemetry</li><li>configuration changes should not require redeploying applications</li><li>you may want to switch or add backends later</li></ul><h4><strong>Running the Collector Locally</strong></h4><pre># pull the image<br>docker pull otel/opentelemetry-collector:&lt;version&gt;<br><br># run the container<br># create the config file before running the container<br>docker run -d \<br>  --name otel-collector \<br>  -p 4317:4317 \<br>  -p 4318:4318 \<br>  -v $(pwd)/collector-config.yaml:/etc/otelcol/config.yaml \<br>  otel/opentelemetry-collector:&lt;version&gt;</pre><p>The collector exposes:</p><ul><li>4317 for OTLP/gRPC</li><li>4318 for OTLP/HTTP</li></ul><h4><strong>Collector Configuration</strong></h4><p>Create <em>collector-config.yaml</em>. Below is a minimal collector configuration that:</p><ul><li>receives traces via gRPC and HTTP</li><li>batches them</li><li>exports them to Instana using OTLP/HTTP</li></ul><pre>receivers:<br>  otlp:<br>    protocols:<br>      grpc:<br>        endpoint: 0.0.0.0:4317<br>      http:<br>        endpoint: 0.0.0.0:4318<br><br>processors:<br>  batch:<br>    timeout: 10s<br><br>exporters:<br>  otlphttp:<br>    endpoint: &quot;https://&lt;instana-otlp-endpoint&gt;:443&quot;<br>    headers:<br>      x-instana-key: &quot;&lt;instana-agent-key&gt;&quot;<br>    tls:<br>      insecure: false<br><br>service:<br>  pipelines:<br>    traces:<br>      receivers: [otlp]<br>      processors: [batch]<br>      exporters: [otlphttp]</pre><p>If you prefer OTLP/gRPC to Instana, you can change the exporters configuration to:</p><pre>exporters:<br>  otlp:<br>    endpoint: &quot;&lt;instana-otlp-endpoint&gt;:443&quot;<br>    headers:<br>      x-instana-key: &quot;&lt;instana-agent-key&gt;&quot;<br>    tls:<br>      insecure: false</pre><h4><strong>Application Configuration with Collector</strong></h4><p>Once the collector is running, point your application to it instead of Instana directly.</p><p><strong>Environment Variable Configuration</strong></p><pre># For gRPC<br>export OTEL_EXPORTER_OTLP_ENDPOINT=&quot;http://localhost:4317&quot;<br><br># For HTTP<br>export OTEL_EXPORTER_OTLP_ENDPOINT=&quot;http://localhost:4318&quot;</pre><p><strong>Programmatic Configuration (gRPC)</strong></p><pre>import (<br>    &quot;context&quot;<br>    &quot;go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc&quot;<br>    sdktrace &quot;go.opentelemetry.io/otel/sdk/trace&quot;<br>)<br><br>func newExporter(ctx context.Context) (sdktrace.SpanExporter, error) {<br>    return otlptracegrpc.New(<br>        ctx,<br>        otlptracegrpc.WithEndpoint(&quot;localhost:4317&quot;),<br>        otlptracegrpc.WithInsecure(), // Collector is local<br>    )<br>}</pre><p><strong>Programmatic Configuration (HTTP)</strong></p><pre>import (<br>    &quot;context&quot;<br>    &quot;go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp&quot;<br>    sdktrace &quot;go.opentelemetry.io/otel/sdk/trace&quot;<br>)<br><br>func newExporter(ctx context.Context) (sdktrace.SpanExporter, error) {<br>    return otlptracehttp.New(<br>        ctx,<br>        otlptracehttp.WithEndpoint(&quot;localhost:4318&quot;),<br>        otlptracehttp.WithInsecure(), // Collector is local<br>    )<br>}</pre><p>You can use either HTTP or gRPC exporter in a local setup. Since both function equivalently in this scenario, select the exporter that best aligns with your existing infrastructure and preferred configuration approach.</p><h3><strong>Conclusion</strong></h3><p>There are two straightforward ways to send OpenTelemetry traces to Instana:</p><p><strong>Direct export</strong> works well for:</p><ul><li>Development and testing</li><li>Single-service applications</li><li>Simple deployments where you don’t need telemetry processing</li></ul><p><strong>Collector-based export </strong>becomes useful when:</p><ul><li>You have multiple services sending traces</li><li>You need to transform or filter telemetry data</li><li>You want to switch backends without redeploying applications</li><li>You’re running in production with multiple environments</li></ul><p>Start with direct export to validate instrumentation; introduce the collector once observability becomes a shared, multi-service concern. Direct export is suitable for simple deployments. For environments involving multiple services or requiring greater flexibility, an OpenTelemetry Collector provides a more scalable solution.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=995ae0f9281e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ibm-cloud/integrating-opentelemetry-with-instana-for-distributed-tracing-995ae0f9281e">Integrating OpenTelemetry with Instana for Distributed Tracing</a> was originally published in <a href="https://medium.com/ibm-cloud">IBM Cloud</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building My Personal Website — From Domain to Deployment]]></title>
            <link>https://medium.com/@angithcjjaas/building-my-personal-website-from-domain-to-deployment-c844600419e4?source=rss-60a5cebc816f------2</link>
            <guid isPermaLink="false">https://medium.com/p/c844600419e4</guid>
            <category><![CDATA[netlify]]></category>
            <category><![CDATA[cloudflare]]></category>
            <category><![CDATA[personal-website]]></category>
            <category><![CDATA[hugo]]></category>
            <dc:creator><![CDATA[Angith Jayan]]></dc:creator>
            <pubDate>Sun, 19 Apr 2026 13:28:36 GMT</pubDate>
            <atom:updated>2026-04-19T13:28:36.633Z</atom:updated>
            <content:encoded><![CDATA[<p>For a long time, I had this thought in the back of my mind — <em>I need a personal website</em>. Not a complex portfolio, just a simple space to write, keep notes, and share what I learn. I kept postponing it, overcomplicating the setup in my head. Recently, I decided to just build it, ship it, and improve it later.</p><p>To visualize the process, I drew up a quick workflow diagram outlining how all the different pieces fit together, from buying the domain to deploying the live site:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ci6PIG8kU7rxcREt.png" /></figure><h3>The Architecture and Tech Stack</h3><p>The first step was getting a domain. I wanted something clean and short, so I registered angith.dev through <a href="https://www.cloudflare.com/en-in/products/registrar/">Cloudflare</a>. I chose Cloudflare because their domain registration is priced at cost, without the annoying upsells you see elsewhere.</p><p>With the domain secured, I had to decide on the tech stack. While I briefly considered building a full React application, I realized I didn’t want to maintain a backend or database for a content-driven site. That led me to static site generators, and I ultimately chose <a href="https://gohugo.io/">Hugo</a>. Hugo is built in Go and its workflow is frictionless: write Markdown, run the build, and deploy the static files. There are no runtime dependencies or database overheads, which is exactly what I wanted.</p><h3>Building with Hugo</h3><p>Since I didn’t want to build the CSS and layout from scratch, I started out with the <a href="https://adityatelange.github.io/hugo-PaperMod/">PaperMod</a> theme. I added it to my project as a submodule:</p><pre>git submodule add https://github.com/adityatelange/hugo-PaperMod themes/PaperMod</pre><p>PaperMod provided a solid base with a clean layout and sensible defaults. I kept the site structure simple with sections for Home, Blog, TIL, Projects, and Portfolio. Inside the project, this maps cleanly to content/blog/, content/til/, and so on.</p><p>As I used the theme, I naturally wanted to customize the homepage layout, navigation, and spacing. Instead of modifying the theme directly-which creates drift and makes upstream updates painful-I leveraged Hugo’s template overriding mechanism. By adding my own templates (like baseof.html and list.html) to my root layouts/ folder, Hugo prioritized them over the theme&#39;s templates. Over time, I replaced enough of the template logic that I completely dropped the submodule and kept my adapted version directly in the repository.</p><h3>Deploying to Netlify</h3><p>For deployment, I connected my GitHub repository to <a href="https://www.netlify.com/">Netlify</a> so that builds happen automatically.</p><p>I went to Netlify and chose <strong>“Add new site → Import from Git”</strong>, selected GitHub, gave the required permissions, and picked my repository. The setup was straightforward, and Netlify automatically detected that it was a Hugo project.</p><p>However, the first build failed with the error bash: hugo: command not found. Even though Netlify detected the project correctly, the Hugo binary wasn&#39;t available in the build environment by default. That&#39;s why the build failed.</p><p>To fix this reliably across builds, I added a netlify.toml file to the root of my repository to explicitly define my local Hugo version (0.157.0 Extended):</p><p>Once I pushed this configuration, Netlify installed the exact version I needed, and the site built successfully.</p><p>The final step was mapping my Cloudflare domain to Netlify. I added a CNAME record targeting my.netlify.app domain. An important detail here is to omit any protocol, like http://, or trailing slashes in the target field.</p><p>When I tried to visit the live site in Chrome immediately after, it blocked access with an ERR_CERT_COMMON_NAME_INVALID error. This happens because Netlify provisions SSL certificates dynamically via Let&#39;s Encrypt, and Chrome&#39;s strict HSTS policy blocks sites without a verified TLS cert. After a few minutes of waiting for the DNS to propagate and the certificate to attach, the site loaded perfectly.</p><h3>Final Thoughts</h3><p>Getting this website live confirmed that starting simple beats perfect planning. If you are thinking about building your own personal site, don’t overthink the tech stack or the design upfront. Pick lightweight tools, set up an automated deployment pipeline, get it live, and refine it through iteration. Now that the core system is ready, I can focus on my actual goals: refining the design, adding more TIL entries, and writing consistently.</p><p><em>Originally published at </em><a href="https://angith.dev/blog/personal_website/"><em>https://angith.dev</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c844600419e4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Instrumenting an Azure Cosmos application with Instana Go Tracer SDK]]></title>
            <link>https://medium.com/ibm-cloud/instrumenting-an-azure-cosmos-application-with-instana-go-tracer-sdk-612611fab596?source=rss-60a5cebc816f------2</link>
            <guid isPermaLink="false">https://medium.com/p/612611fab596</guid>
            <category><![CDATA[azure-cosmos-db]]></category>
            <category><![CDATA[ibm]]></category>
            <category><![CDATA[tracing]]></category>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[instana]]></category>
            <dc:creator><![CDATA[Angith Jayan]]></dc:creator>
            <pubDate>Thu, 09 May 2024 06:52:21 GMT</pubDate>
            <atom:updated>2024-05-09T07:08:01.121Z</atom:updated>
            <content:encoded><![CDATA[<p>IBM Instana Go Tracer is an SDK that collects traces, metrics, logs, and profiles for Go applications. It provides instrumentation support for several commonly used Go packages. <em>Instacosmos</em> is the latest instrumentation package from the Instana Go tracer SDK that helps to bring observability into Go applications that use the Azure Cosmos DB. The APIs are designed to minimize overhead in adopting <em>Instacosmos</em> if you are familiar with the Azure <em>azcosmos</em> package. This instrumentation package primarily encompasses essential details, such as database name, container name, Cosmos endpoint, partition key, and the corresponding SQL query for each operation.</p><p><em>Azure Cosmos DB</em> is a fully managed NoSQL and relational database for modern app development. It is a globally distributed, multi-model database service provided by <em>Microsoft Azure</em> that can simplify and expedite development by being the single AI database for the applications. It supports all the operational data models, including relational, document, vector, key-value, graph, and table.</p><p>The <a href="https://github.com/Azure/azure-sdk-for-go">azure-sdk-for-go</a> repository is for the active development of the <em>Azure</em> SDK for Go and it contains the <em>Azure </em><a href="https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/data/azcosmos"><em>Cosmos DB SDK</em></a> for the client applications to connect to <em>Azure Cosmos DB</em>.</p><p>This article discusses the process of instrumenting the <em>Azure Cosmos DB SDK</em> for Instana’s Go tracer and integrating <em>instacosmos</em> into your application.</p><h3>Instrumenting Azure Cosmos DB SDK: A development perspective</h3><h4><strong>Injecting tracer</strong></h4><p>All libraries often have an option to inject the tracer implementation. Interestingly, the <em>azcosmos</em> library also provides this option.<br>So, to instrument the library, an instance of Provider struct can be created in the <em>azcore </em>library in Azure SDK and passed through the <em>ClientOptions</em> as shown in the following snippet:</p><pre>instacosmos.NewClientWithKey(collector, endpoint, cred,<br> &amp;azcosmos.ClientOptions{<br>  ClientOptions: policy.ClientOptions{<br>   TracingProvider: tracing.NewProvider(func(name, version string) tracing.Tracer {<br>    // implement the instrumentation<br>    // return tracer<br>   }),<br>  },<br> })</pre><p>However, the <em>azcosmos</em> library currently does not support the <em>TracingProvider</em> option even though it allows the tracer to pass through it. So manually instrumenting the <em>azcosmos SDK</em> was the only feasible option.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2qZ9thzCR8u8VWNq" /><figcaption>Photo by <a href="https://unsplash.com/@grakozy?utm_source=medium&amp;utm_medium=referral">Greg Rakozy</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4><strong>Manually instrumenting the azcosmos SDK</strong></h4><p>In manual instrumentation, a client interface is provided that wraps the methods supplied by the <em>ContainerClient struct</em> in the <em>azcosmos </em>library. So, instead of a pointer to the instance of <em>ContainerClient struct</em> (azcosmos.ContainerClient), you are provided with the <em>ContainerClient interface</em> from <em>instacosmos. </em>Currently, <em>instacosmos</em> supports the following methods:</p><p>· CreateItem</p><p>· DeleteItem</p><p>· ExecuteTransactionalBatch</p><p>· ID</p><p>· NewQueryItemsPager</p><p>· NewTransactionalBatch</p><p>· PatchItem</p><p>· Read</p><p>· ReadItem</p><p>· ReadThroughput</p><p>· Replace</p><p>· ReplaceItem</p><p>· ReplaceThroughput</p><p>· UpsertItem</p><h4><strong>Getting the </strong>ContainerClient<strong><em> </em>instance from azcosmos</strong></h4><p>The following code illustrates how you can create an instance of azcosmos.ContainerClient:</p><pre>cred, err := azcosmos.NewKeyCredential(&quot;myAccountKey&quot;)<br>handle(err)<br>client, err := azcosmos.NewClientWithKey(&quot;myAccountEndpointURL&quot;, cred, nil)<br>handle(err)<br>container, err := client.NewContainer(&quot;myDatabase&quot;, &quot;myContainer&quot;)<br>handle(err)</pre><p>You must create an instance azcosmos.Client<em> </em>and it can be used to create the container and database instances.</p><h4><strong>Getting the </strong>ContainerClient<strong><em> </em>interface from instacosmos</strong></h4><p>The following code illustrates how you can get the <em>ContainerClient</em> interface from <em>instacosmos</em>:</p><pre> t := instana.InitCollector(&amp;instana.Options{<br>  Service: &quot;cosmos-example&quot;,<br> })<br> cred, err := instacosmos.NewKeyCredential(&quot;myAccountKey&quot;)<br> handle(err)<br> client, err := instacosmos.NewClientWithKey(t, &quot;myAccountEndpointURL&quot;, cred, &amp;azcosmos.ClientOptions{})<br> handle(err)<br> containerClient, err := client.NewContainer(dbName, containerName)<br> handle(err)</pre><h3>Integrating instacosmos into your Go application</h3><p>The process of using the instrumented library closely resembles that of using the actual SDK for client applications to connect to <em>Azure Cosmos DB</em>. The <em>instacosmos</em> module provides the following functions to obtain the <em>Azure Cosmos DB</em> client:</p><ul><li>NewClient</li><li>NewClientFromConnectionString</li><li>NewClientWithKey</li></ul><p>These functions serve as wrappers for the identically named functions in the azcosmos library. Notably, unlike the original functions, instana.TraceLogger needs to be passed additionally. These functions return an interface that offers the functionalities of<em> azcosmos.Client</em>. By using this interface, call the <em>NewContainer</em> method to acquire the <em>ContainerClient</em> interface. This interface consists of all the methods supported by the <em>ContainerClient</em> struct in <em>azcosmos</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PaRQ3-q0AMox0IWI" /><figcaption>Photo by <a href="https://unsplash.com/@antilumen?utm_source=medium&amp;utm_medium=referral">Robert Wiedemann</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4><strong>Example</strong></h4><pre> t := instana.InitCollector(&amp;instana.Options{<br>  Service: &quot;cosmos-example&quot;,<br> })<br> cred, err := instacosmos.NewKeyCredential(cosmosKey)<br> if err != nil {<br>  log.Fatal(&quot;Failed to create KeyCredential:&quot;, err)<br> }<br> client, err := instacosmos.NewClientWithKey(t, cosmosEndpoint, cred, &amp;azcosmos.ClientOptions{})<br> if err != nil {<br>  log.Fatal(&quot;Failed to create cosmos DB client:&quot;, err)<br> }<br> containerClient, err := client.NewContainer(dbName, containerName)<br> if err != nil {<br>  log.Fatal(&quot;Failed to create a container client:&quot;, err)<br> }<br> pk := containerClient.NewPartitionKeyString(&quot;newPartitionKey&quot;)<br> item := map[string]string{<br>  &quot;id&quot;:             &quot;anId&quot;,<br>  &quot;value&quot;:          &quot;2&quot;,<br>  &quot;myPartitionKey&quot;: &quot;newPartitionKey&quot;,<br> }<br> marshalled, err := json.Marshal(item)<br> if err != nil {<br>  log.Fatal(&quot;Failed to marshal span data:&quot;, err)<br> }<br> itemResponse, err := containerClient.CreateItem(context.Background(), pk, marshalled, nil)<br> if err != nil {<br>  log.Print(&quot;Failed to create the item:&quot;, err)<br> }</pre><h3><strong>Output</strong></h3><p>After you successfully instrument the Azure Cosmos DB into your application, you can seamlessly visualize the trace within the Instana UI as shown in the following image:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mq-17KrMwVN7ZoWUru_jwQ.png" /></figure><h3><strong>Related Documentation</strong></h3><p>- <a href="https://github.com/Azure/azure-sdk-for-go/tree/main">Azure SDK For Go</a></p><p>- <a href="https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/data/azcosmos">Azure Cosmos DB SDK</a></p><p>- <a href="https://github.com/instana/go-sensor/tree/main/instrumentation/instacosmos">instacosmos</a></p><p>- <a href="https://github.com/instana/go-sensor/tree/main/example/cosmos">Example</a></p><p>To report any issues, suggest improvements, or contribute to the development of SDK, go to the public <a href="https://github.com/instana/go-sensor">GitHub</a> repository and open an issue.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=612611fab596" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ibm-cloud/instrumenting-an-azure-cosmos-application-with-instana-go-tracer-sdk-612611fab596">Instrumenting an Azure Cosmos application with Instana Go Tracer SDK</a> was originally published in <a href="https://medium.com/ibm-cloud">IBM Cloud</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>