有关Microsoft Azure Application Insights的编程问题,Azure Application Insights是部署的实时应用程序的监视服务,允许收集可用性,性能,使用情况和其他诊断数据。它支持Web服务,Windows应用商店应用和Windows Phone 8应用。
我有依赖项A,它有其他依赖项B的parentId,B有依赖项C的parentId,而C有请求R的parentId 其他一些依赖项与请求的连接较短,例如 A ->...
如何在 Application Insight 中为 Azure Function 设置范围?
当我在 Azure Function 中使用 Application Insight 时,它看起来像 使用 (_logger.BeginScope("MyLog")) { _logger.LogInformation("测试"); } 没有任何影响,即日志出现...
使用 ASP.NET Core 集成和 Serilog 实现独立 Azure 功能的 Application Insights 中的重复日志条目
我有一个 .NET 8 Azure Functions 项目,位于具有 ASP.NET Core 集成的隔离工作进程中。对于日志记录,我想使用 Serilog 和 ApplicationInsights 接收器,这样我就可以记录范围内的日志
我正在使用 Application Insights,并且可以在应用程序见解中看到请求,但是当我尝试记录错误时(例如在我的控制器中): _logger.LogError("我的错误日志"); _logger.LogE...
在 azure 函数 v4 .net 8 隔离函数上忽略应用程序洞察日志记录配置
我正在使用 v4 dotnet-isolated 在 dotnet 8 中编写 Azure 函数。 部署到 Azure 时,我想将“调试”及以上级别的自定义跟踪消息记录到应用程序洞察中。 当debu...
Azure Application Insights 不显示 SpringBoot 应用程序指标
我正在尝试使用 Azure Application Insight 来监视 SpringBoot 应用程序。我对应用程序进行了以下更改: 向项目添加了所需的依赖项。 我正在尝试使用 Azure Application Insight 来监视 SpringBoot 应用程序。我对应用程序进行了以下更改: 向项目添加了所需的依赖项。 <dependency> <groupId>com.microsoft.azure</groupId> <artifactId>applicationinsights-core</artifactId> <version>3.5.3</version> </dependency> <dependency> <groupId>com.microsoft.azure</groupId> <artifactId>applicationinsights-runtime-attach</artifactId> <version>3.5.3</version> </dependency> 在启动 SpringBoot 应用程序时添加了 ApplicationInsights.attach();。 将以下内容添加到applicationinsights.json文件 "connectionString": "<actual-connection-string>", "role": { "name": "SampleApp-1", "instance": "SampleApp-1-Instance01" }, "sampling": { "percentage": 100 }, "jmxMetrics": [ ], "customDimensions": { }, "instrumentation": { "logging": { "level": "INFO" }, "micrometer": { "enabled": true } }, "proxy": { }, "preview" : { "profiler" : { "enabled" : true } }, "selfDiagnostics": { "destination": "file+console", "level": "DEBUG", "file": { "path": "applicationinsights.log", "maxSizeMb": 5, "maxHistory": 1 } } } 但是,我无法在实时指标或应用程序地图仪表板中获取应用程序的数据。另外,我的理解是,如果我的应用程序使用 Spring Boot Actuator,则由 Spring Boot Actuator 配置的指标会自动收集。尽管如此,我还是无法查看该数据。 我有来自服务的以下日志: 2024-06-25 15:20:46.361+01:00 DEBUG c.a.m.o.e.i.p.TelemetryItemExporter - sending telemetry to ingestion service: {"ver":1,"name":"Metric","time":"2024-06-25T14:20:42.871Z","iKey":"1873fa04-f24d-4b11-805e-127b57d426bf","tags":{"ai.internal.sdkVersion":"ra_java:3.5.3","ai.cloud.roleInstance":"SampleApp-1-Instance01","ai.cloud.role":"SampleApp-1"},"data":{"baseType":"MetricData","baseData":{"ver":2,"metrics":[{"name":"\\Process(??APP_WIN32_PROC??)\\% Processor Time","value":0.15297564344634373}]}}} {"ver":1,"name":"Metric","time":"2024-06-25T14:20:42.871Z","iKey":"1873fa04-f24d-4b11-805e-127b57d426bf","tags":{"ai.internal.sdkVersion":"ra_java:3.5.3","ai.cloud.roleInstance":"SampleApp-1-Instance01","ai.cloud.role":"SampleApp-1"},"data":{"baseType":"MetricData","baseData":{"ver":2,"metrics":[{"name":"\\Process(??APP_WIN32_PROC??)\\% Processor Time Normalized","value":0.15297564344634373}]}}} {"ver":1,"name":"Metric","time":"2024-06-25T14:20:42.871Z","iKey":"1873fa04-f24d-4b11-805e-127b57d426bf","tags":{"ai.internal.sdkVersion":"ra_java:3.5.3","ai.cloud.roleInstance":"SampleApp-1-Instance01","ai.cloud.role":"SampleApp-1"},"data":{"baseType":"MetricData","baseData":{"ver":2,"metrics":[{"name":"\\Process(??APP_WIN32_PROC??)\\Private Bytes","value":3.57483864E8}]}}} {"ver":1,"name":"Metric","time":"2024-06-25T14:20:42.871Z","iKey":"1873fa04-f24d-4b11-805e-127b57d426bf","tags":{"ai.internal.sdkVersion":"ra_java:3.5.3","ai.cloud.roleInstance":"SampleApp-1-Instance01","ai.cloud.role":"SampleApp-1"},"data":{"baseType":"MetricData","baseData":{"ver":2,"metrics":[{"name":"\\Memory\\Available Bytes","value":1.2197888E7}]}}} {"ver":1,"name":"Metric","time":"2024-06-25T14:20:42.881Z","iKey":"1873fa04-f24d-4b11-805e-127b57d426bf","tags":{"ai.internal.sdkVersion":"ra_java:3.5.3","ai.cloud.roleInstance":"SampleApp-1-Instance01","ai.cloud.role":"SampleApp-1"},"data":{"baseType":"MetricData","baseData":{"ver":2,"metrics":[{"name":"\\Process(??APP_WIN32_PROC??)\\IO Data Bytes/sec","value":549.605004947921}]}}} {"ver":1,"name":"Metric","time":"2024-06-25T14:20:42.881Z","iKey":"1873fa04-f24d-4b11-805e-127b57d426bf","tags":{"ai.internal.sdkVersion":"ra_java:3.5.3","ai.cloud.roleInstance":"SampleApp-1-Instance01","ai.cloud.role":"SampleApp-1"},"data":{"baseType":"MetricData","baseData":{"ver":2,"metrics":[{"name":"\\Processor(_Total)\\% Processor Time","value":1.5401452508344375}]}}} {"ver":1,"name":"Metric","time":"2024-06-25T14:20:42.882Z","iKey":"1873fa04-f24d-4b11-805e-127b57d426bf","tags":{"ai.internal.sdkVersion":"ra_java:3.5.3","ai.cloud.roleInstance":"SampleApp-1-Instance01","ai.cloud.role":"SampleApp-1"},"data":{"baseType":"MetricData","baseData":{"ver":2,"metrics":[{"name":"Suspected Deadlocked Threads","value":0.0}]}}} {"ver":1,"name":"Metric","time":"2024-06-25T14:20:42.882Z","iKey":"1873fa04-f24d-4b11-805e-127b57d426bf","tags":{"ai.internal.sdkVersion":"ra_java:3.5.3","ai.cloud.roleInstance":"SampleApp-1-Instance01","ai.cloud.role":"SampleApp-1"},"data":{"baseType":"MetricData","baseData":{"ver":2,"metrics":[{"name":"Heap Memory Used (MB)","value":182.58433532714844}]}}} {"ver":1,"name":"Metric","time":"2024-06-25T14:20:42.882Z","iKey":"1873fa04-f24d-4b11-805e-127b57d426bf","tags":{"ai.internal.sdkVersion":"ra_java:3.5.3","ai.cloud.roleInstance":"SampleApp-1-Instance01","ai.cloud.role":"SampleApp-1"},"data":{"baseType":"MetricData","baseData":{"ver":2,"metrics":[{"name":"% Of Max Heap Memory Used","value":2.2288126945495605}]}}} {"ver":1,"name":"Metric","time":"2024-06-25T14:20:42.882Z","iKey":"1873fa04-f24d-4b11-805e-127b57d426bf","tags":{"ai.internal.sdkVersion":"ra_java:3.5.3","ai.cloud.roleInstance":"SampleApp-1-Instance01","ai.cloud.role":"SampleApp-1"},"data":{"baseType":"MetricData","baseData":{"ver":2,"metrics":[{"name":"GC Total Count","value":0.0}]}}} {"ver":1,"name":"Metric","time":"2024-06-25T14:20:42.882Z","iKey":"1873fa04-f24d-4b11-805e-127b57d426bf","tags":{"ai.internal.sdkVersion":"ra_java:3.5.3","ai.cloud.roleInstance":"SampleApp-1-Instance01","ai.cloud.role":"SampleApp-1"},"data":{"baseType":"MetricData","baseData":{"ver":2,"metrics":[{"name":"GC Total Time","value":0.0}]}}} 在这里,我们无法通过使用instrumentation key连接来看到控制台登录到应用程序inisights。 因此,我在这里创建了一个应用程序服务,并将 Spring boot 应用程序部署到其中,以查看传入和传出请求的实时指标。 应用程序属性: management.endpoints.web.exposure.include=* management.endpoint.health.show-details=always management.metrics.export.azure.enabled=true management.metrics.export.azure.instrumentation-key=<instrumentaton_ke> 输出: [2m2024-06-26T18:19:32.076+05:30[0;39m [32m INFO[0;39m [35m6988[0;39m [2m---[0;39m [2m[demo-78667584] [ main][0;39m [2m[0;39m[36mc.e.d.DemoxxxxxApplication [0;39m [2m:[0;39m Starting Demo7xxxxxApplication using Java 17.0.9 with PID 6988 (C:\Users\xxxxxxxx\Downloads\demo-78667584\demo-78667584\target\classes started by xxxxxx in C:\Users\xxxxxxx\Downloads\demo-78667584\demo-78667584) [2m2024-06-26T18:19:32.128+05:30[0;39m [32m INFO[0;39m [35m6988[0;39m [2m---[0;39m [2m[demo-78667584] [ main][0;39m [2m[0;39m[36mc.e.d.Demo78667584Application [0;39m [2m:[0;39m No active profile set, falling back to 1 default profile: "default" 2024-06-26 18:19:32.138+05:30 DEBUG c.m.a.a.i.exporter.AgentLogExporter - exporting log: SdkLogRecordData{resource=Resource{schemaUrl=null, attributes={service.name="SampleApp-1", telemetry.sdk.language="java", telemetry.sdk.name="opentelemetry", telemetry.sdk.version="1.38.0"}}, instrumentationScopeInfo=InstrumentationScopeInfo{name=com.example.demo_78667584.Demo78667584Application, version=null, schemaUrl=null, attributes={}}, timestampEpochNanos=1719406172076000000, observedTimestampEpochNanos=1719406172097383400, spanContext=ImmutableSpanContext{traceId=00000000000000000000000000000000, spanId=0000000000000000, traceFlags=00, traceState=ArrayBasedTraceState{entries=[]}, remote=false, valid=false}, severity=INFO, severityText=INFO, body=AnyValueBody{Starting Demo78667584Application using Java 17.0.9 with PID 6988 (C:\Users\xxxxxx\Downloads\demo-78667584\demo-78667584\target\classes started by xxxxx in C:\Users\xxxx\Downloads\demo-78667584\demo-78667584)}, attributes={thread.id=1, thread.name="main"}, totalAttributeCount=2} 2024-06-26 18:19:32.161+05:30 DEBUG c.m.a.a.i.exporter.AgentLogExporter - exporting log: SdkLogRecordData{resource=Resource{schemaUrl=null, attributes={service.name="SampleApp-1", telemetry.sdk.language="java", telemetry.sdk.name="opentelemetry", telemetry.sdk.version="1.38.0"}}, instrumentationScopeInfo=InstrumentationScopeInfo{name=com.example.demo_78667584.Demo78667584Application, version=null, schemaUrl=null, attributes={}}, timestampEpochNanos=1719406172128000000, observedTimestampEpochNanos=1719406172128744600, spanContext=ImmutableSpanContext{traceId=00000000000000000000000000000000, spanId=0000000000000000, traceFlags=00, traceState=ArrayBasedTraceState{entries=[]}, remote=false, valid=false}, severity=INFO, severityText=INFO, body=AnyValueBody{No active profile set, falling back to 1 default profile: "default"}, attributes={thread.id=1, thread.name="main"}, totalAttributeCount=2} 2024-06-26 18:19:35.260+05:30 DEBUG c.a.m.o.e.i.p.TelemetryItemExporter - sending telemetry to ingestion service: {"ver":1,"name":"Message","time":"2024-06-26T12:49:32.076Z","iKey":"bbf4f401-50ed-41b9-890c-fabb4f96250d","tags":{"ai.internal.sdkVersion":"ra_java:3.5.3","ai.cloud.roleInstance":"SampleApp-1-Instance01","ai.cloud.role":"SampleApp-1"},"data":{"baseType":"MessageData","baseData":{"ver":2,"message":"Starting Demo78667584Application using Java 17.0.9 with PID 6988 (C:\\Users\\xxxxxxxxx\\Downloads\\demo-78667584\\demo-78667584\\target\\classes started by xxxxxxxxxxxx in C:\\Users\\xxxxxxxxx\\Downloads\\demo-78667584\\demo-78667584)","severityLevel":"Information","properties":{"LoggerName":"com.example.demo_78667584.Demo78667584Application","SourceType":"Logger","ThreadName":"main"}}}} {"ver":1,"name":"Message","time":"2024-06-26T12:49:32.128Z","iKey":"bbf4f401-50ed-41b9-890c-fabb4f96250d","tags":{"ai.internal.sdkVersion":"ra_java:3.5.3","ai.cloud.roleInstance":"SampleApp-1-Instance01","ai.cloud.role":"SampleApp-1"},"data":{"baseType":"MessageData","baseData":{"ver":2,"message":"No active profile set, falling back to 1 default profile: \"default\"","severityLevel":"Information","properties":{"LoggerName":"com.example.demo_78667584.Demo78667584Application","SourceType":"Logger","ThreadName":"main"}}}} [2m2024-06-26T18:19:35.402+05:30[0;39m [32m INFO[0;39m [35m6988[0;39m [2m---[0;39m [2m[demo-78667584] [ main][0;39m [2m[0;39m[36mo.s.b.w.embedded.tomcat.TomcatWebServer [0;39m [2m:[0;39m Tomcat initialized with port 8080 (http) 2024-06-26 18:19:35.435+05:30 DEBUG c.m.a.a.i.exporter.AgentLogExporter - exporting log: SdkLogRecordData{resource=Resource{schemaUrl=null, attributes={service.name="SampleApp-1", telemetry.sdk.language="java", telemetry.sdk.name="opentelemetry", telemetry.sdk.version="1.38.0"}}, instrumentationScopeInfo=InstrumentationScopeInfo{name=org.springframework.boot.web.embedded.tomcat.TomcatWebServer, version=null, schemaUrl=null, attributes={}}, timestampEpochNanos=1719406175402000000, observedTimestampEpochNanos=1719406175402576200, spanContext=ImmutableSpanContext{traceId=00000000000000000000000000000000, spanId=0000000000000000, traceFlags=00, traceState=ArrayBasedTraceState{entries=[]}, remote=false, valid=false}, severity=INFO, severityText=INFO, body=AnyValueBody{Tomcat initialized with port 8080 (http)}, attributes={thread.id=1, thread.name="main"}, totalAttributeCount=2} [2m2024-06-26T18:19:35.466+05:30[0;39m [32m INFO[0;39m [35m6988[0;39m [2m---[0;39m [2m[demo-78667584] [ main][0;39m [2m[0;39m[36mo.apache.catalina.core.StandardService [0;39m [2m:[0;39m Starting service [Tomcat] [2m2024-06-26T18:19:35.467+05:30[0;39m [32m INFO[0;39m [35m6988[0;39m [2m---[0;39m [2m[demo-78667584] [ main][0;39m [2m[0;39m[36mo.apache.catalina.core.StandardEngine [0;39m [2m:[0;39m Starting Servlet engine: [Apache Tomcat/10.1.25] 2024-06-26 18:19:35.537+05:30 DEBUG c.m.a.a.i.exporter.AgentLogExporter - exporting log: SdkLogRecordData{resource=Resource{schemaUrl=null, attributes={service.name="SampleApp-1", telemetry.sdk.language="java", telemetry.sdk.name="opentelemetry", telemetry.sdk.version="1.38.0"}}, instrumentationScopeInfo=InstrumentationScopeInfo{name=org.apache.catalina.core.StandardService, version=null, schemaUrl=null, attributes={}}, timestampEpochNanos=1719406175465000000, observedTimestampEpochNanos=1719406175465194000, spanContext=ImmutableSpanContext{traceId=00000000000000000000000000000000, spanId=0000000000000000, traceFlags=00, traceState=ArrayBasedTraceState{entries=[]}, remote=false, valid=false}, severity=INFO, severityText=INFO, body=AnyValueBody{Starting service [Tomcat]}, attributes={thread.id=1, thread.name="main"}, totalAttributeCount=2} 2024-06-26 18:19:35.539+05:30 DEBUG c.m.a.a.i.exporter.AgentLogExporter - exporting log: SdkLogRecordData{resource=Resource{schemaUrl=null, attributes={service.name="SampleApp-1", telemetry.sdk.language="java", telemetry.sdk.name="opentelemetry", telemetry.sdk.version="1.38.0"}}, instrumentationScopeInfo=InstrumentationScopeInfo{name=org.apache.catalina.core.StandardEngine, version=null, schemaUrl=null, attributes={}}, timestampEpochNanos=1719406175467000000, observedTimestampEpochNanos=1719406175467203600, spanContext=ImmutableSpanContext{traceId=00000000000000000000000000000000, spanId=0000000000000000, traceFlags=00, traceState=ArrayBasedTraceState{entries=[]}, remote=false, valid=false}, severity=INFO, severityText=INFO, body=AnyValueBody{Starting Servlet engine: [Apache Tomcat/10.1.25]}, attributes={thread.id=1, thread.name="main"}, totalAttributeCount=2} [2m2024-06-26T18:19:35.691+05:30[0;39m [32m INFO[0;39m [35m6988[0;39m [2m---[0;39m [2m[demo-78667584] [ main][0;39m [2m[0;39m[36mo.a.c.c.C.[Tomcat].[localhost].[/] [0;39m [2m:[0;39m Initializing Spring embedded WebApplicationContext [2m2024-06-26T18:19:35.691+05:30[0;39m [32m INFO[0;39m [35m6988[0;39m [2m---[0;39m [2m[demo-78667584] [ main][0;39m [2m[0;39m[36mw.s.c.ServletWebServerApplicationContext[0;39m [2m:[0;39m Root WebApplicationContext: initialization completed in 3403 ms 2024-06-26 18:19:35.742+05:30 DEBUG c.m.a.a.i.exporter.AgentLogExporter - exporting log: SdkLogRecordData{resource=Resource{schemaUrl=null, attributes={service.name="SampleApp-1", telemetry.sdk.language="java", telemetry.sdk.name="opentelemetry", telemetry.sdk.version="1.38.0"}}, instrumentationScopeInfo=InstrumentationScopeInfo{name=org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/], version=null, schemaUrl=null, attributes={}}, timestampEpochNanos=1719406175691000000, observedTimestampEpochNanos=1719406175691744600, spanContext=ImmutableSpanContext{traceId=00000000000000000000000000000000, spanId=0000000000000000, traceFlags=00, traceState=ArrayBasedTraceState{entries=[]}, remote=false, valid=false}, severity=INFO, severityText=INFO, body=AnyValueBody{Initializing Spring embedded WebApplicationContext}, attributes={thread.id=1, thread.name="main"}, totalAttributeCount=2} 2024-06-26 18:19:35.742+05:30 DEBUG c.m.a.a.i.exporter.AgentLogExporter - exporting log: SdkLogRecordData{resource=Resource{schemaUrl=null, attributes={service.name="SampleApp-1", telemetry.sdk.language="java", telemetry.sdk.name="opentelemetry", telemetry.sdk.version="1.38.0"}}, instrumentationScopeInfo=InstrumentationScopeInfo{name=org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext, version=null, schemaUrl=null, attributes={}}, timestampEpochNanos=1719406175691000000, observedTimestampEpochNanos=1719406175693683000, spanContext=ImmutableSpanContext{traceId=00000000000000000000000000000000, spanId=0000000000000000, traceFlags=00, traceState=ArrayBasedTraceState{entries=[]}, remote=false, valid=false}, severity=INFO, severityText=INFO, body=AnyValueBody{Root WebApplicationContext: initialization completed in 3403 ms}, attributes={thread.id=1, thread.name="main"}, totalAttributeCount=2} [2m2024-06-26T18:19:36.904+05:30[0;39m [32m INFO[0;39m [35m6988[0;39m [2m---[0;39m [2m[demo-78667584] [ main][0;39m [2m[0;39m[36mo.s.b.w.embedded.tomcat.TomcatWebServer [0;39m [2m:[0;39m Tomcat started on port 8080 (http) with context path '/' [2m2024-06-26T18:19:36.932+05:30[0;39m [32m INFO[0;39m [35m6988[0;39m [2m---[0;39m [2m[demo-78667584] [ main][0;39m [2m[0;39m[36mc.e.d.Demo78667584Application [0;39m [2m:[0;39m Started Demo78667584Application in 6.554 seconds (process running for 19.613) 2024-06-26 18:19:36.942+05:30 DEBUG c.m.a.a.i.exporter.AgentLogExporter - exporting log: SdkLogRecordData{resource=Resource{schemaUrl=null, attributes={service.name="SampleApp-1", telemetry.sdk.language="java", telemetry.sdk.name="opentelemetry", telemetry.sdk.version="1.38.0"}}, instrumentationScopeInfo=InstrumentationScopeInfo{name=org.springframework.boot.web.embedded.tomcat.TomcatWebServer, version=null, schemaUrl=null, attributes={}}, timestampEpochNanos=1719406176904000000, observedTimestampEpochNanos=1719406176904680900, spanContext=ImmutableSpanContext{traceId=00000000000000000000000000000000, spanId=0000000000000000, traceFlags=00, traceState=ArrayBasedTraceState{entries=[]}, remote=false, valid=false}, severity=INFO, severityText=INFO, body=AnyValueBody{Tomcat started on port 8080 (http) with context path '/'}, attributes={thread.id=1, thread.name="main"}, totalAttributeCount=2} 2024-06-26 18:19:36.943+05:30 DEBUG c.m.a.a.i.exporter.AgentLogExporter - exporting log: SdkLogRecordData{resource=Resource{schemaUrl=null, attributes={service.name="SampleApp-1", telemetry.sdk.language="java", telemetry.sdk.name="opentelemetry", telemetry.sdk.version="1.38.0"}}, instrumentationScopeInfo=InstrumentationScopeInfo{name=com.example.demo_78667584.Demo78667584Application, version=null, schemaUrl=null, attributes={}}, timestampEpochNanos=1719406176932000000, observedTimestampEpochNanos=1719406176933230900, spanContext=ImmutableSpanContext{traceId=00000000000000000000000000000000, spanId=0000000000000000, traceFlags=00, traceState=ArrayBasedTraceState{entries=[]}, remote=false, valid=false}, severity=INFO, severityText=INFO, body=AnyValueBody{Started Demo78667584Application in 6.554 seconds (process running for 19.613)}, attributes={thread.id=1, thread.name="main"}, totalAttributeCount=2} 2024-06-26 18:19:40.302+05:30 DEBUG c.a.m.o.e.i.p.TelemetryItemExporter - sending telemetry to ingestion service: {"ver":1,"name":"Message","time":"2024-06-26T12:49:35.402Z","iKey":"bbf4f401-50ed-41b9-890c-fabb4f96250d","tags":{"ai.internal.sdkVersion":"ra_java:3.5.3","ai.cloud.roleInstance":"SampleApp-1-Instance01","ai.cloud.role":"SampleApp-1"},"data":{"baseType":"MessageData","baseData":{"ver":2,"message":"Tomcat initialized with port 8080 (http)","severityLevel":"Information","properties":{"LoggerName":"org.springframework.boot.web.embedded.tomcat.TomcatWebServer","SourceType":"Logger","ThreadName":"main"}}}} {"ver":1,"name":"Message","time":"2024-06-26T12:49:35.465Z","iKey":"bbf4f401-50ed-41b9-890c-fabb4f96250d","tags":{"ai.internal.sdkVersion":"ra_java:3.5.3","ai.cloud.roleInstance":"SampleApp-1-Instance01","ai.cloud.role":"SampleApp-1"},"data":{"baseType":"MessageData","baseData":{"ver":2,"message":"Starting service [Tomcat]","severityLevel":"Information","properties":{"LoggerName":"org.apache.catalina.core.StandardService","SourceType":"Logger","ThreadName":"main"}}}} {"ver":1,"name":"Message","time":"2024-06-26T12:49:35.467Z","iKey":"bbf4f401-50ed-41b9-890c-fabb4f96250d","tags":{"ai.internal.sdkVersion":"ra_java:3.5.3","ai.cloud.roleInstance":"SampleApp-1-Instance01","ai.cloud.role":"SampleApp-1"},"data":{"baseType":"MessageData","baseData":{"ver":2,"message":"Starting Servlet engine: [Apache Tomcat/10.1.25]","severityLevel":"Information","properties":{"LoggerName":"org.apache.catalina.core.StandardEngine","SourceType":"Logger","ThreadName":"main"}}}} {"ver":1,"name":"Message","time":"2024-06-26T12:49:35.691Z","iKey":"bbf4f401-50ed-41b9-890c-fabb4f96250d","tags":{"ai.internal.sdkVersion":"ra_java:3.5.3","ai.cloud.roleInstance":"SampleApp-1-Instance01","ai.cloud.role":"SampleApp-1"},"data":{"baseType":"MessageData","baseData":{"ver":2,"message":"Initializing Spring embedded WebApplicationContext","severityLevel":"Information","properties":{"LoggerName":"org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]","SourceType":"Logger","ThreadName":"main"}}}} {"ver":1,"name":"Message","time":"2024-06-26T12:49:35.691Z","iKey":"bbf4f401-50ed-41b9-890c-fabb4f96250d","tags":{"ai.internal.sdkVersion":"ra_java:3.5.3","ai.cloud.roleInstance":"SampleApp-1-Instance01","ai.cloud.role":"SampleApp-1"},"data":{"baseType":"MessageData","baseData":{"ver":2,"message":"Root WebApplicationContext: initialization completed in 3403 ms","severityLevel":"Information","properties":{"LoggerName":"org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext","SourceType":"Logger","ThreadName":"main"}}}} {"ver":1,"name":"Message","time":"2024-06-26T12:49:36.904Z","iKey":"bbf4f401-50ed-41b9-890c-fabb4f96250d","tags":{"ai.internal.sdkVersion":"ra_java:3.5.3","ai.cloud.roleInstance":"SampleApp-1-Instance01","ai.cloud.role":"SampleApp-1"},"data":{"baseType":"MessageData","baseData":{"ver":2,"message":"Tomcat started on port 8080 (http) with context path '/'","severityLevel":"Information","properties":{"LoggerName":"org.springframework.boot.web.embedded.tomcat.TomcatWebServer","SourceType":"Logger","ThreadName":"main"}}}} {"ver":1,"name":"Message","time":"2024-06-26T12:49:36.932Z","iKey":"bbf4f401-50ed-41b9-890c-fabb4f96250d","tags":{"ai.internal.sdkVersion":"ra_java:3.5.3","ai.cloud.roleInstance":"SampleApp-1-Instance01","ai.cloud.role":"SampleApp-1"},"data":{"baseType":"MessageData","baseData":{"ver":2,"message":"Started Demo78667584Application in 6.554 seconds (process running for 19.613)","severityLevel":"Information","properties":{"LoggerName":"com.example.demo_78667584.Demo78667584Application","SourceType":"Logger","ThreadName":"main"}}}} 部署状态: App Insights 交易搜索: 实时指标:
如何在 Azure Application Insights 中查找非不同/重复的消息?
在我的跟踪表中,我收到如下消息: 传入交易:0504250624105104 已验证 传入交易:0504250624105604 已验证 传入交易:0504250624105604 已验证 公司...
我正在尝试理解采样数据。而且我似乎无法在任何地方找到确切的措辞。有时,我碰巧没有将应用程序中的所有日志记录在跟踪中。我已经治疗过...
我正在尝试理解采样数据。而且我似乎无法在任何地方找到确切的措辞。有时,我碰巧没有将应用程序中的所有日志记录在跟踪中。我已经治疗过...
在 Azure Application Insights 中如何取消屏蔽客户端 IP 地址
我注意到“失败”中的所有异常日志记录都将客户端 Ip 归零。 我如何打开这个或取消屏蔽,以便客户端 IP 在每次日志记录中都可见?
Application Insights 中缺少某些 Azure 函数日志
将我们的 Azure Functions (v4) 之一升级到 .NET 8 并隔离工作线程后,我们遇到了一些日志记录问题;一些(不是全部)错误级别日志仅出现在函数日志流中...
我有一个查询可以呈现这样的时间表。但是,如何在 customDimensions.["Is Success"] == "True" 的同一个图表上绘制? 自定义事件 |延长P...
Azure WebApp LogStream 多次显示相同的日志并将所有日志显示为 [ERROR],即使它们是 [INFO] 级别
Azure WebApp LogStream 多次显示相同的日志,并将所有日志显示为 [ERROR],即使它们是 [INFO] 级别。下图显示了日志流的实际屏幕截图。 日志 福尔...
如何使用 Powershell 在没有 Instrumentationkey 的情况下在 Application Insights 中创建跟踪?
我是一名平台工程师,致力于改善多个产品团队的开发人员体验。我已将这篇博文中的 Powershell 代码重构为一个可推送的工作示例
Application Insights KQL 查询 - 不在子查询中
如何返回不在另一个查询结果中的查询结果?例如,我想返回从第一个查询返回但不在第二个查询中的结果:
Application Insights 中的本机 Node.js 指标
我已经安装了这里提到的applicationinsights-native-metrics包:https://learn.microsoft.com/en-us/azure/azure-monitor/app/nodejs 我假设我的应用程序正在生成
如何将opentelemetry收集器导出到Azure Application Insigths
我尝试过这个: 接收者: 奥特普: 协议: 组组: http: 处理器: 批: 出口商: 天蓝色监视器: Instrumentation_key:“”
切换到新的 Application Insights 实例后,Azure Function App 不显示函数调用
我有一个 Azure Function 应用程序,最近更新为指向新的 Application Insights 实例。 新的 Application Insights 实例已在“设置”>“环境变量”中正确配置...
通过 Terraform 中的 RBAC 对 Application Insights 进行应用服务身份验证
我试图消除在使用 terraform 创建的 azure 基础设施中使用连接字符串。我计划将特定的 rbac 角色分配给 Web 应用程序、功能应用程序等资源,以...
Azure App Insights 连接字符串在 Azure Function 中返回 null
我正在将 App Insights 用于在 2.x 运行时上运行的旧 azure 函数应用程序(Blob 触发器),几周前没有对代码进行任何更改,我得到 Value不能为空(Paramater '