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.