-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Opens a json file when at Oracle connection.Open() line #57
Comments
We have created an issue in Pivotal Tracker to manage this: https://www.pivotaltracker.com/story/show/163084679 The labels on this github issue will be updated when the story is started. |
@nmarun sounds like your path (management:endpoints:path) is set to / (or perhaps not set). Look at https://steeltoe.io/docs/steeltoe-management/#1-2-usage and try setting this in your appsettings.json: management:endpoints:path=/cloudfoundryapplication. |
@hananiel thanks, yes it was missing, but that still didn't solve the problem. I'm seeing these two lines in the output window in VS: Does that help in any way? Also, I'm using IISExpress for local debugging. |
nmarun, can you confirm that your appsettings.json is in your application root, and it is set to "copy if new" and getting copied to bin folder. If that doesn't work, can you try commenting out |
@hananiel I had updated the management:endpoints:path in the wrong appsettings.json. So just adding that config in the correct file helped me get rid of the issue and now my app is working. One question still remains is that doesn't it show the trace id and span id while local debugging? I did read a couple of articles which talked about Steeltoe-Serilog incompatibility. Isn't there any work around for that? Please let me know. Arun |
@nmarun can you confirm that removing Serilog makes things work? I would recommend we test each component one by one and find what is breaking . Ex. Start with just actuators and verify trace functionality. And slowly add the other things. Also try increasing the log level and attach the logs so we can take a look. |
I created a simple application by following the steps in https://steeltoe.io/docs/steeltoe-management/#2-1-1-running-locally. This one doesn't have Serilog but when I deploy, it doesn't show my the trace id / span id details in PCF (or even local, if it should show there). |
@nmarun I looked at your solution. I am not sure how you are trying to view the traces but adding a zipkin trace exporter worked for me as how the sample works. Please take a look and see if this helps: https://github.com/hananiel/nmarun/commit/511ba80b627388f2bcb97a6fe02edd0442f70d95 |
So two options to view traces locally :
In Cloud Foundry, you can just add the app.UseCloudFoundryActuators with the path set to "/cloudfoundryapplication" and the traces window in apps manager should show you the traces, |
This issue has been dormant for months, I'm assuming you found a solution. Please re-open if you need further help with this problem |
Hi I'm trying to integrate Steeltoe to my .netcore application. The application connects to an Oracle db and fetches a few records for processing. While debugging locally, my app is opening the below json file when i execute the connection.Open() line. Once I open the json file, the debugging in VS gets stopped while the app continues to run.
I'm using the below packages:
What am I missing?
S04W8QRC.txt
Program.cs file:
Startup.cs:
The text was updated successfully, but these errors were encountered: