Replies: 2 comments 2 replies
-
Ok so I passed a streamwriter to the connection multiplexer and output to a file. Looks like it's just straight up dying at some point. Here is the output:
|
Beta Was this translation helpful? Give feedback.
1 reply
-
I am not a vbexpert, but if I am reading following code correctly, you are creating connection, then registering it and disposing. I suppose that it will be no longer working. Using connection = ConnectionMultiplexer.Connect(redisConnectionString)
Me.tracerProvider = Sdk.CreateTracerProviderBuilder() _
.AddAspNetInstrumentation() _
.AddOtlpExporter() _
.AddHttpClientInstrumentation() _
.AddSqlClientInstrumentation() _
.AddRedisInstrumentation(connection, Sub(options) options.FlushInterval = TimeSpan.FromSeconds(1)) _
.AddAzureMonitorTraceExporter(Sub(options) options.ConnectionString = appInsightsConnectionString) _
.Build()
End Using BTW moving this discussion to contrib repository. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have an old legacy asp.net webforms application that we've migrated from in proc session to redis. Now I'm trying to get the redis instrumentation to record redis calls in application insights. I've followed this guide to migrate from the application insights to opentelemetry. I've also been using these as a reference as well:
opentelemetry
opentelemetry-aspnet
It's sending the requests and I can see them in application insights. I can't seem to get the redis calls to show up. I see the redis sessions in the cache metrics and in the console of the redis instance. I can also see the logging if I call the loggerFactory.CreateLogger method. Do I need to implement a processor or something to get the redis calls to show up in the telemetry? Thanks!
Web.config
Global.asax.vb:
Beta Was this translation helpful? Give feedback.
All reactions