Coder Social home page Coder Social logo

Comments (3)

giuliohome avatar giuliohome commented on August 17, 2024
  • For Gitlab, this is solved with a service
  • For Azure Pipeline, this is solved with a docker container running on a vmImage created on the fly for the pipeline
  • The missing part is the internal (e.g. dotnet api backend) tracing of the app on azure:
    • how complicated the docker compose approach (dotnet app + agent) for azure container/app services?
    • how costly is the cheapest kubernetes?
    • how much the cheapest vm (it looks like 8$ a month)
    • can be done with Azure Application Insights and Azure Monitor

from pytest-otel-jaeger-kubernetes.

giuliohome avatar giuliohome commented on August 17, 2024

The latter seems the way to go for Azure Opentelemetry.

Will try inside my Azure DevOps project.

Well, there I'll opt for Azure Insights because it is more mature

from pytest-otel-jaeger-kubernetes.

giuliohome avatar giuliohome commented on August 17, 2024

You can send opentelemetry traces to grafana cloud tempo saas without an agent or a collector: see my dotnet and python code also there.

.NET

            services.AddOpenTelemetryTracing((builder) => 
                builder
                    //https://github.com/open-telemetry/opentelemetry-dotnet/blob/main/docs/trace/customizing-the-sdk/README.md
                    .AddSource("AzureTracer")
                    .SetResourceBuilder(ResourceBuilder.CreateDefault()
                        .AddService("API.TestBed"))
                    // Instrument HttpClient calls and pass on context
                    // .AddHttpClientInstrumentation() // catching azure live diagnostic
                    .AddAspNetCoreInstrumentation()
                    .AddSqlClientInstrumentation(
                        options => options.SetDbStatementForText = true)
                    .AddConsoleExporter()
                    .AddOtlpExporter(o =>
                    {
                        o.Endpoint = new Uri("https://tempo-eu-west-0.grafana.net"); //"http://otel-collector:4317");
                        string token = "my encoded token";
                        o.Headers = $"Authorization=Basic {token}";
                        o.ExportProcessorType = ExportProcessorType.Simple;
                    }));
        }

image

Python

Notice that for python it is necessary to upgrade to version 1.12 of opentelemetry sdk!

pip install --upgrade opentelemetry-exporter-otlp
pip install --upgrade opentelemetry-sdk

from pytest-otel-jaeger-kubernetes.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.