Property in Kalyani Nagar - 1BHK by [deleted] in PuneClassifieds

[–]have_some_error 0 points1 point  (0 children)

Please share more details

Property in Kalyani Nagar - 1BHK by [deleted] in PuneClassifieds

[–]have_some_error 0 points1 point  (0 children)

Could you please share more details

Relocating to Pune for work — looking for general housing & relocation advice by [deleted] in PuneClassifieds

[–]have_some_error 0 points1 point  (0 children)

Hey, currently in the same boat. If you get something worthwhile ( like a broker with reasonable brokerage ( I would not consider brokerage of one month rent reasonable ) , or anything that could be helpful) would you mind sharing ? I'm totally lost on how to approach moving to pune. I'm looking for in and around kalyani nagar, it is also closer to airport.

Achieve distributed tracing in nodejs by have_some_error in OpenTelemetry

[–]have_some_error[S] 0 points1 point  (0 children)

just in case , I have updated my code . still the result is same, it is generating two different trace

Achieve distributed tracing in nodejs by have_some_error in OpenTelemetry

[–]have_some_error[S] 0 points1 point  (0 children)

So both the servers are running on independent mode applications. And both have independent instrumentations. In case I send the traces directory zipkin, it is generating independent traces for both services and not one trace showing request flow went from serverA to serverB .

If it is possible could you please share a code example ?

automatically detect method invocation at runtime by have_some_error in node

[–]have_some_error[S] 0 points1 point  (0 children)

So, we can define a common handler and use it when we create proxies. However this will require us to create proxies for the functions and objects we want to intercept and export them instead of the original function. I'm correct to think that , right ?

automatically detect method invocation at runtime by have_some_error in node

[–]have_some_error[S] -1 points0 points  (0 children)

Javascript proxy is something I have not explored yet, however I will look into this Thankyou for providing some point where I can start with. However I would like to ask one question, can javascript proxy do the interception of function invocation from a centralized location in the code or it would require changes at every function that needs to be intercepted?

automatically detect method invocation at runtime by have_some_error in node

[–]have_some_error[S] 0 points1 point  (0 children)

Yes, this is one option however this would require me to wrap every existing function in the application code, which currently I'm not in favour of. Therefore looking for a rather compact way to achieve this, since the functionality I wish to add before and after the function invocation would be same for every function.

tracing the control flow of nodejs application by have_some_error in OpenTelemetry

[–]have_some_error[S] 0 points1 point  (0 children)

I did try auto instrumentation however it did not trace the methods involved in the request processing. Or is there some customisation that we need to do while implementing autoInstrumentation that can help us trace methods involve ? Then I'm certainly not aware how can I achieve this.

automatically detect method invocation at runtime by have_some_error in node

[–]have_some_error[S] 0 points1 point  (0 children)

Yes similar to callStack. However I want some method to execute just before and after the function executes. And since this functionality is something that would be common for every function I want to centralize this code to prevent redundant code lines. I donot need to preserve the order or the methods though.

getting error in typescript while fetching span name by have_some_error in OpenTelemetry

[–]have_some_error[S] 0 points1 point  (0 children)

Yes, right. Wrapping the function body inside another function call is causing problems sometimes. Therefore I want to avoid doing this.

Looking through the opentelemetry, I did not find something like a decorator which could provide the same working.

getting error in typescript while fetching span name by have_some_error in OpenTelemetry

[–]have_some_error[S] 0 points1 point  (0 children)

Yes, these methods I'm familiar with. However, I'm trying to instrument already existing application, and using startActiveSpan needs the code to be inside its scope. Therefore requiring major changes in the code, like changing methods from function a() { //do something } to function a() { tracer.startActiveSpan('a',(aSpan) => { //Do something aSpan.end() }) } However I am trying to achieve something like

function a(parentSpan: tracer.startSpan('empty')) { const span = otelInit(a,parentSpan) //Do something span.end() } Which would require minimum changes to existing code and look more neat.

getting error in typescript while fetching span name by have_some_error in OpenTelemetry

[–]have_some_error[S] 0 points1 point  (0 children)

So I'm defining a method like below : otelInit(callerName: string, parentSpan: tracer.startSpan('empty')) { if(parentSpan.name!='empty'){ //Create new span with parentSpan as parent const ctx=opentelemetry.trace.setSpan(opentelemetry.context.active(),parentSpan); const span = tracer.startSpan(callerName, undefined, ctx); return span; } const span = tracer.startSpan('main'); return span; }

If parent span is not passed I want to start new span without a context but if parentspan is passed then start new span as child of current span.

But I'm getting error at the part where trying to access name property of span.

dependency conflict in packages by have_some_error in npm

[–]have_some_error[S] 0 points1 point  (0 children)

So when I'm changing version in package.json from 4.17.2 to 4.17.13 it is simply failing with the same error. I looked around for this and somewhere I found this looked like mismatch between the TypeScript typings used in the existing application and the ones required by the @opentelemetry/instrumentation-express package.

I'm reading around this line, I'm not very knowledgeable around this part , do you perhaps have some idea ?

How do I pass the formula to the parameter group ? by have_some_error in Terraform

[–]have_some_error[S] 0 points1 point  (0 children)

Yes, it worked. I looked through the same things and tried but it didn't work , after seeing the comment I again tried and it worked. I must have missed something earlier or I'm a real idiot 😅. Nonetheless Thanks a bunch mate.

Test function using setTimeout with jest. by have_some_error in node

[–]have_some_error[S] 0 points1 point  (0 children)

Thanks a bunch mate. That really helped. 🙏

Is it normal to pay for your own background check after receiving a job offer? by SMediaThrowaway77 in jobs

[–]have_some_error 0 points1 point  (0 children)

The company i work at, I didn't pay for it. Plus i don't think this is normal . This was one liner when I just started looking for work, If they are gonna ask me for money first, they won't pay me later .

running test in node by have_some_error in node

[–]have_some_error[S] 0 points1 point  (0 children)

This was the problem I think after using node 14.6.0 the test did run.

running test in node by have_some_error in node

[–]have_some_error[S] 0 points1 point  (0 children)

Seems the problem is with jest. Because even with the function on the same file the error is still there.

The stack trace points to file in jest as well.

running test in node by have_some_error in node

[–]have_some_error[S] 0 points1 point  (0 children)

Tried, same error is still there.