Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
25 views

How to use matchers for the argument of canThrow() with ByteBuddy?

I'm writing some code where I would like to instrument every method in a class that throws a specific exception, so I would like to have something like this: builder.method(ElementMatchers.canThrow(...
Gilles Coremans's user avatar
0 votes
0 answers
61 views

NextJS instrumentation invoked differently in dev vs prod

I am trying to setup dd-trace to auto instrument next and graphql spans in my nextjs app. This works correctly in a dev build (graphql spans are uploaded to datadog), however, in production build the ...
neeko's user avatar
  • 2,000
0 votes
0 answers
18 views

Firebase Test Lab auto grant permissions for UI tests

Is there any documentation stating FTL installs the app with the -g flag, meaning manifest permissions are automatically granted? I cannot find in my digging. Thanks! I looked into firebase test lab ...
rdlc's user avatar
  • 31
0 votes
1 answer
25 views

How to resolve the error "The specified aspect 'AspectLogger' cannot be found" in AspectJ LTW setup?

I am trying to set up AspectJ load-time weaving (LTW) for logging method execution time in my Java web application. It is a webapp written using Servlets, jsp (No Spring used) and deployed on jBoss ...
Vinod's user avatar
  • 328
1 vote
1 answer
25 views

Prometheus metric for an app's version that would allow building alerts on the version change

I need to build a metric for an application's version to detect anomalies after the version change and build alerts around it. For example, I can view the rates of error responses. There could be ...
Zefr's user avatar
  • 31
0 votes
0 answers
20 views

How to capture all SQL query results in SQLAlchemy without modifying the DBAPI cursor?

I'm trying to implement a system that captures all query results in SQLAlchemy for logging and analysis purposes. However, I've encountered challenges when attempting to modify the DBAPI cursor ...
chaoz's user avatar
  • 43
0 votes
0 answers
56 views

Nyc instrumentation code coverage report containing instrumented code

I am using nyc instrumentation and cypress code coverage plugin (https://docs.cypress.io/guides/tooling/code-coverage). Using npx nyc instrument I instrument my app, so cypress can intercept the ...
Lucas's user avatar
  • 11
0 votes
0 answers
43 views

Intel PIN, get memory access value of SIMD, standard and multi-memory access instructions

I have been trying to write an Intel PIN tool for instruction tracing. In that, I want to also store the value accessed by a memory access. The code below is the loop that I wrote for instrumenting ...
Sai Aravind's user avatar
0 votes
1 answer
32 views

double buffering implementation in Intel PIN

I have written a PIN tool for instruction tracing, where I spawned a separate thread for writing contents of the buffer to a file. When run, most of the time an error is caused. Once in a while, it ...
Sai Aravind's user avatar
0 votes
1 answer
58 views

Get variable stored at specific memory address in Java

I am working with a Java instrumentation framework (DiSL) to profile some code. I am retrieving the values of local variables at various stages of execution, however some of them are only accessible ...
Arseni's user avatar
  • 11
2 votes
1 answer
416 views

How to Read Arguments in a Function Call with Frida

I am using frida-trace to attach a handler to a certain function in my c++ console application. here is the code from the target application in C++: string Add(int a, int b) { ostringstream oss; ...
Emre Bener's user avatar
  • 1,322
0 votes
2 answers
97 views

is this the right way to add annotation with bytebuddy in java agent?

I want to add an annotation to all methods of some classes in a java agent, I did this and it worked , but I'm not sure if that's the right way because i saw other examples that i didn't understand. I ...
Shin938's user avatar
  • 969
-1 votes
1 answer
58 views

Java ClassFileTransformer fails to throw exception

I have code that attempts to redefine a class at runtime using a ClassFileTransformer and an instance of Instrumentation. However, I've noticed that the transform method of ClassFileTransformer fails ...
crazycat256's user avatar
0 votes
0 answers
106 views

visual studio 2019 instrumentation feature not working on already running process

visual studio 2019 16.9.7. I am using the performance profiler to get profiling data on my c++ project. I want to use the instrumentation feature, which I am able to use if I select the project as ...
vinayak's user avatar
  • 23
0 votes
0 answers
35 views

How to instrument java code to collect variable allocation data with byte buddy or ASM

how should I instrument my code to get variables allocation data during program execution? consider this code for example: public class Test2 { public boolean isSerialKeyValid(String serial) { ...
farzad's user avatar
  • 413
0 votes
0 answers
105 views

Setup sentry to only log transactions occuring on a specific subpage

Is there a way to setup sentry to only monitor transaction occuring on a specific url i.e "www.mypage/newcheckout"? Let's say I have a next.js based web shop and I'm rolling out a new ...
Peter O's user avatar
0 votes
2 answers
135 views

How can I modify the core api in java ?

for example:I want to change LocalDateTime.now() return result in non-production enviroment, I am trying to invoke the following code,but error occors: @Test public void test3() { ...
yicai.liu's user avatar
1 vote
2 answers
108 views

OpenJDK Tracking ReentrantLock lock and unlock

I am doing runtime instrumentation using the interpreter. My focus now is adding a function call before any ReEntractLock lock() and unlock() function. For reference, this is the Test.java: class Test ...
alex01011's user avatar
  • 1,670
1 vote
0 answers
19 views

How to lookup the function addresses of ALL functions instrumented with gcc -finstrument-functions flag?

This option, as described in the documentation, adds instrumentation calls at the entry and exit of functions. These calls pass the start address of the function, which I then lookup with dladdr to ...
Lolo's user avatar
  • 4,099
1 vote
0 answers
59 views

(Instrument API, Agent)My ClassFileTransformer's transform method fails to recognize a specific class in Springboot

Background: Hello, I am developing an Agent through bytecode manipulation. Using the Instrument API, I aimed to read all classes before class loading by utilizing premain - ClassFileTransformer. My ...
Leon's user avatar
  • 11
0 votes
1 answer
44 views

Initializing Non-Primtive Field by ByteBuddy in Aspect

For monitoring and program analysis, I'm currently trying to transform an AspectJ implementation to one ByteBuddy and one javassist implementation. The original AspectJ implementation is here: https://...
David Georg Reichelt's user avatar
0 votes
1 answer
367 views

EF Core connection pool metrics in Prometheus

I want to add metrics for EF Core connection pool in Prometheus. I have used the following based on the documentation but I don't see the metrics in Prometheus. Moreover, I don't see any Prometheus ...
Ammar's user avatar
  • 43
0 votes
0 answers
35 views

Why IntelPin tool build gets linker error when using wincrypt functions?

I am using: Intel pin 3.27 Visual Studio 2022 to compile tool OS Windows 10 wincrypt is defined like this: namespace WINDOWS { #include <windows.h> #include <Wincrypt.h> #include <...
ili0n's user avatar
  • 1
0 votes
2 answers
279 views

Is it possible to use bpf_override_return in uprobes/uretprobes?

I am trying to modify the behaviour of a userspace function during runtime using ebpf uprobes. bpf_override_return is used in kprobes to override the return value, is it possible to use it in uprobes/...
imawful's user avatar
  • 111
0 votes
0 answers
15 views

Memory trace of a function and all the functions called by it

I want a memory (read) trace of a function and all the functions called by the function I wish to trace. This is the code I wrote. #include "pin.H" #include <cstdint> #include <...
Sai Aravind's user avatar
0 votes
0 answers
40 views

Overhead of pintool with no instrumentation done

I observe almost 50% overhead with some frontend bound microbenchmarks even though I don't instrument the code. There are no callbacks and the pintool just attaches to the microbenchmark using its PID....
Vignesh's user avatar
0 votes
0 answers
16 views

How can I determine which CMake targets were added by a command?

I'm invoking a CMake command, e.g. FetchContent_MakeAvailable(), or find_package(). I want to determine which targets were added by invoking that command. I'm ok with running some code before command ...
einpoklum's user avatar
  • 128k
0 votes
3 answers
263 views

Compilation failure on custom class with package java.util

I have a custom class, whose package is given as java.util. The code was compiling fine before java version 9, but when I have changed java version to 11, I am facing package exists in another module: ...
V R's user avatar
  • 1
0 votes
0 answers
61 views

How to inject a script in html pages without touching the application code in ASP.NET Core

I want to inject some Javascript code (which tracks total requests made from browser) in html responses in my ASP.NET Core application. I know that we can use middleware to manipulate the responses in ...
Zader's user avatar
  • 77
0 votes
0 answers
79 views

.NET command line dynamic profiler not capturing data

I am using .NET framework 4.8 with Visual Studio 2019 (v16.11.11). I am attempting to use the dynamic instrumentation profiler on a C# executable (and loaded dll) launched from a wrapper script on the ...
Rooman's user avatar
  • 1
0 votes
0 answers
77 views

Android unit test generated jacoco coverage doesn’t contain original code coverage report

I have written the unit test codes and the Android.bp build file with “instrumentation_for” attribute targeting the indicated app to test, after I use the command “EMMA_INSTRUMENT=true ...
Naughtybeds's user avatar
0 votes
1 answer
1k views

Add a custom attribute in traces from opentelemetry in .NET core 3.1

I was looking for adding custom attribute in the traces of opentelemetry.I want to add the session values like unique Id as the custom attribute to track each traces from each user.But in startup I am ...
pradeep's user avatar
0 votes
1 answer
114 views

ActiveJDBC instrumentation in ActiveJDBC 3.0 for Java 17 takes too long in big models

for business purposes i have to upgrade some backend's from java 8 + java-ee to java 17 + jakarta-ee. Those backends uses a single model (a large one, 800+ classes) and works just fine with activejdbc-...
Garci4's user avatar
  • 11
0 votes
0 answers
503 views

OpenTelemetry Instrumentation - Can't get my tests to work - NodeJS

I'm currently in the course of writing an easy-to-use instrumentation wrapper library using Openetelemetry and NodeJS. For that, I'm heavily using the node-auto-instrumentation package but I do have ...
Markus Velten's user avatar
0 votes
1 answer
912 views

Opentelemetry agent auto-instrumentation not connecting web server calls to microservice calls, although traces of both are captured independently

I have a basic opentelemetry setup, consisting of: A deployment running a tomcat web server (with otel java agent attached on runtime) multiple deployments with different microservices (with otel ...
Sahil Chawla's user avatar
2 votes
1 answer
478 views

Android Instrumentation Tests cancelled but run on device

In my project where I was able run instrumentation tests successfully, after upgrading Android Studio to Giraffe, now the instrumentation tests cannot connect to the test device and the tests are ...
Elican Doenyas's user avatar
1 vote
0 answers
50 views

javassist ExprEditor - how to distinguish multiple method calls on same type

Given the following example class, I want to count the calls to doThis() and doThat() per Instance (sc1, sc2) using Javassist (ExprEditor) and the Prometheus Java client library, but I find no way to ...
autopwn's user avatar
  • 13
-1 votes
1 answer
198 views

Implementing method instrumentation using bytebuddy [duplicate]

We are trying to build a javaagent for instrumenting classes using ByteBuddy. We have a javassist implementation that does not work well with Mockito, and therefore moving to ByteBuddy for ...
user3911119's user avatar
1 vote
1 answer
828 views

How to define individual service name for each type of Opentelemetry auto instrumentation in a python application?

We are currently using Datadog for monitoring and observability in our application, and we have integrated OpenTelemetry for distributed tracing. We have encountered one main issue Span Separation: ...
Daniel Raja's user avatar
0 votes
0 answers
70 views

Avoiding application level instrumentation and let Istio do the job

I integrated my Spring Boot application (a couple of REST service calls) with sleuth-otel and everything is working fine. Still I was wandering if I can replace this application level instrumentation ...
PariPaolo's user avatar
0 votes
1 answer
222 views

Is there any way I can keep track of every object in a python application (e.g., using unique ids)?

I am trying to create a model that represents parts of an execution of a python application (Logging the creation of some objects, accessing attributes, looping over, etc.). An issue I haven't been ...
Nima MG's user avatar
0 votes
0 answers
119 views

Does rust have a compile option to insert Several nop instructions before each rust function?

Like this: I want to insert a few nop instructions in front of each rust code, taking up a few instruction cycles. What compilation options can I do?
super_jh's user avatar
  • 141
0 votes
1 answer
586 views

Trace context propagation in grpc java service

I have a core java based service which communicates with another .NET service through grpc calls. The java service receives grpc requests from the .NET service and it will process the request and will ...
abhinand07's user avatar
0 votes
0 answers
86 views

Can New Relic Java agent miss sending last one minute metrics data in case of JVM crash?

New Relic has a Java agent which can be added as a dependency to the application. The agent does instrumentation as part of the running JVM I believe. And that instrumented data is sent to New Relic ...
aatwork's user avatar
  • 2,240
0 votes
1 answer
603 views

Building and deploying NextJS container app with App Insights instrumentation doesn't work

I'm trying to implement instrumentation for my nextjs 13.4.19 application (using pages directory). Everything works when running the application with npm run dev in my local environment. However, when ...
kubop's user avatar
  • 3
2 votes
0 answers
112 views

How to measure intructions in a small portion of code with Perf API (PAPI)

My problem I am using PAPI high-level API to measure a C++ tree traversal code. With an abstract example: retval = PAPI_hl_region_begin("traversal"); if ( retval != PAPI_OK ) printf(&...
exepe's user avatar
  • 70
0 votes
1 answer
260 views

AWS X-RAY + Opentelemetry gRPC instrumentation not working well

I have this code that initializes a tracer. The context of it is that is being used inside a monorepo with multiple services that are deployed into aws. The traces go from the api-gw to the service ...
David's user avatar
  • 1
1 vote
1 answer
446 views

Frida-Gadget not working with Android's app_process

I want to instrument a Java program on my Android device via a Frida-Gadget but I am failing to get it to work. Here are the steps i took. First of all here is the code of a simple Java program: ...
mmm's user avatar
  • 11
2 votes
0 answers
517 views

Java Auto Instrumentation creating problems in the namespace

I am trying to install OpenTelemetry in our Staging Environment, the collector being in DaemonSet Mode. My goal is to create a Java Instrumentation customer resource, which defines the configuration ...
Anubhav Kumar's user avatar
0 votes
1 answer
44 views

byte-buddy: class declared within builder.visit(Advice.to is not invoked

Aim of my application is to capture the Classes, Methods and its parameters loaded. Below declared is the premain and the implementation within class Interceptor.class should print the methodname, ...
Aravind Kumar's user avatar

1
2 3 4 5
25