Code Monkey home page Code Monkey logo

Comments (8)

Jonathan-w6d avatar Jonathan-w6d commented on May 25, 2024 1

Just so you know, your blogpost made at least one happy devops ;)
I was having some much trouble making auto instrumentation work with static fronts, thanks a lot !

from timdeschryver.dev.

DvDruzhkov avatar DvDruzhkov commented on May 25, 2024 1

i did it

instead of library @opentelemetry/auto-instrumentations-web I used @opentelemetry/instrumentation @opentelemetry/instrumentation-xml-http-request
as a result, registerInstrumentations looks like this:

registerInstrumentations({
instrumentations: [new XMLHttpRequestInstrumentation()],
});

from timdeschryver.dev.

timdeschryver avatar timdeschryver commented on May 25, 2024

That's great to hear, thanks for the feedback @Jonathan-w6d !

from timdeschryver.dev.

DvDruzhkov avatar DvDruzhkov commented on May 25, 2024

hi, in angular universal I get an error Cannot find name 'Task' and Cannot find name 'Zone'
the problem occurs in the file node_modules/@opentelemetry/auto-instrumentations-web/node_modules/@opentelemetry/instrumentation-user-interaction/build/src/internal-types.d.ts
did you solve this problem?

from timdeschryver.dev.

DvDruzhkov avatar DvDruzhkov commented on May 25, 2024

I want to make loading lazy, for this I put the loading logic init of openTelemetry in a separate file and load it at the start of the application through import. everything is fine, but the assembly for the ssr is not going to

from timdeschryver.dev.

timdeschryver avatar timdeschryver commented on May 25, 2024

Hey @DvDruzhkov , sorry but I don't really have SSR experience with Angular.
It seems like it's throwing this issue because zone.js is not loaded yet.

from timdeschryver.dev.

DvDruzhkov avatar DvDruzhkov commented on May 25, 2024

this problem occurs during the build, I will try to solve it

from timdeschryver.dev.

DvDruzhkov avatar DvDruzhkov commented on May 25, 2024

after these settings the build for web and ssr works

from timdeschryver.dev.

Related Issues (20)

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.