ThreeMammals / Ocelot

.NET API Gateway
https://www.nuget.org/packages/Ocelot
MIT License
8.4k stars 1.64k forks source link

when i install Ocelot version 11.0.3 why App.Metrics can not get any log.. #625

Closed hongwei7458 closed 6 years ago

hongwei7458 commented 6 years ago

Expected Behavior / New Feature

Actual Behavior / Motivation for New Feature

a website with App.Metrics is work ,when i add Ocelot , Ocelot is work, but App.Metrics can not get request log...

Steps to Reproduce the Problem

  1. getway solution add App.Metrics. is work
  2. when i add Ocelot is not work , 1

Specifications

TomPallister commented 6 years ago

@hongwei7458 I don't anything about App.Metrics I'm afraid. Ocelot is just a normal asp.net core app so I don't know why there framework doesnt work with it.

My best guess might be because Ocelot implements its own DiagnosticListener for tracing and maybe they need to register a version of this for App.Metrics to work?

hongwei7458 commented 6 years ago

App.Metrics it gathering request log and Insert InfluxDB when i request gateway site , the request how to tracing.

hongwei7458 commented 6 years ago

@hongwei7458 I don't anything about App.Metrics I'm afraid. Ocelot is just a normal asp.net core app so I don't know why there framework doesnt work with it.

My best guess might be because Ocelot implements its own DiagnosticListener for tracing and maybe they need to register a version of this for App.Metrics to work?

i find the demo with App.Metrics and ocelot but it use Ocelot 2.0

TomPallister commented 6 years ago

@hongwei7458 can you send me a link to the demo for Ocelot 2.0? I might be able to identify what has changed.