Azure WebJob Application Insight

アンドリュー

Azure WebAPIサイトにいくつかのWebジョブがデプロイされています。これらの1つにメモリリークがあると思われますが、原因の詳細はわかりません。したがって、アプリケーションインサイトにnugetパッケージを追加できるかどうかを確認したかったのです。https://github.com/Azure/azure-webjobs-sdk/wiki/Application-Insights-Integration

実行しようとすると、次のようなエラーが発生します

ここに画像の説明を入力してください 私のプログラムはこれだけです

class Program
{
    private static string ConnectionString { get; set; }
    private static readonly JobHostConfiguration _config = new JobHostConfiguration("DefaultEndpointsProtocol=https;AccountName=mcastagstorage;AccountKey=fW/DoBsghvPgEy2/uBTZSxSSvgPoUs/jGRxV59scXmexpfDSPbSGLovjAuoLtGbSIuDBobDHyIfUdHrWWRz5DA==;EndpointSuffix=core.windows.net");

    // Please set the following connection strings in app.config for this WebJob to run:
    // AzureWebJobsDashboard and AzureWebJobsStorage
    static void Main()
    {
        string instrumentationKey = "MyKey";
        if (!string.IsNullOrEmpty(instrumentationKey))
        {
            // Wire up with default filters; Filtering will be explained later.
            _config.LoggerFactory = new LoggerFactory()
                .AddApplicationInsights(instrumentationKey, null)
                .AddConsole();

            _config.Tracing.ConsoleLevel = TraceLevel.Off;
        }

        ConnectionString = ConfigurationManager.ConnectionStrings["ConsistingEntities"].ConnectionString;

        if (_config.IsDevelopment)
        {
            _config.UseDevelopmentSettings();
        }

        var host = new JobHost(_config);
        // The following code ensures that the WebJob will be running continuously
        host.RunAndBlock();
    }
}

LoaderExceptionsは次のとおりです

ここに画像の説明を入力してください

私は.netバージョンにも非常に混乱しています。元の.netには慣れていますが、現在は.net標準とコアが表示されており、これにどの.netを使用するのかわかりません。

どんな助けでも大歓迎です

ジョーイカイ

私はあなたのコードをテストし、あなたの問題を再現しました。

WebJobsv3を使用しているようです。その場合、Newtonsoft.Jsonのバージョンは10.0.3になります。

この記事を読んだ後、これがwebjobのバグであることは示されませんでした

私はそれを解決するために次の方法を使用します。よろしければ、WebJobs v2ベータに戻るか、Newtonsoft.Jsonをバージョン<10.0.3に更新してください

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

Azure WebJob Application Insight

分類Dev

Aspect in Azure Function for Application Insight Correlation

分類Dev

C# Application Insight Failure: TrackEvent Does not send to Azure Application Insight

分類Dev

Azure Application Insight Telemetry for On-Premises web app

分類Dev

C#でのAzure関数のApplication Insight Logging

分類Dev

Old Azure WebJob logs

分類Dev

Azure Application Insight内でHTTPキューの長さを確認できますか?

分類Dev

.NET CoreのAzure WebJob

分類Dev

Azure WebJob automatically gets aborted

分類Dev

Azure Webjob failing Exit Code -1073740940

分類Dev

Azure WebJob- QueueTrigger Staging and Production

分類Dev

Azure triggered webjob not triggering when there are message in azure service bus

分類Dev

What is the exact time taken by Application insight to Log the error

分類Dev

Why does my continuous azure webjob run the function twice?

分類Dev

Azure Webjob: C# - The Autodiscover service couldn't be located error

分類Dev

Azure WebJobを作成しますか?

分類Dev

Azure Data LakeStoreとWebJob / Azure関数を使用したAzureSQL

分類Dev

Application InsightのTelemetryClientスレッドは安全ですか?

分類Dev

Application Insightと2017年の未処理の例外

分類Dev

Azure WebJobが有効な(?)CRON式を受け入れない

分類Dev

AzureポータルでWebJobを作成できません

分類Dev

手動で作成したWebJobをAzureに公開する方法

分類Dev

.net core azure WebJob 3.0.3UseTimersがありません

分類Dev

webJob @ azureによるスケジュールされた再起動

分類Dev

Azure WebJob-QueueTriggerのステージングと本番

分類Dev

azure-webjobs-sdk-extensionsとトリガーされたWebjob

分類Dev

Azure C# Webjob TimeTriggerが起動しない

分類Dev

以前のWebJobがまだ実行されている場合、Azure Scheduled WebJobは開始されますか?

分類Dev

Visual Studio 2013のアプリケーションからApplication Insightを削除する

Related 関連記事

  1. 1

    Azure WebJob Application Insight

  2. 2

    Aspect in Azure Function for Application Insight Correlation

  3. 3

    C# Application Insight Failure: TrackEvent Does not send to Azure Application Insight

  4. 4

    Azure Application Insight Telemetry for On-Premises web app

  5. 5

    C#でのAzure関数のApplication Insight Logging

  6. 6

    Old Azure WebJob logs

  7. 7

    Azure Application Insight内でHTTPキューの長さを確認できますか?

  8. 8

    .NET CoreのAzure WebJob

  9. 9

    Azure WebJob automatically gets aborted

  10. 10

    Azure Webjob failing Exit Code -1073740940

  11. 11

    Azure WebJob- QueueTrigger Staging and Production

  12. 12

    Azure triggered webjob not triggering when there are message in azure service bus

  13. 13

    What is the exact time taken by Application insight to Log the error

  14. 14

    Why does my continuous azure webjob run the function twice?

  15. 15

    Azure Webjob: C# - The Autodiscover service couldn't be located error

  16. 16

    Azure WebJobを作成しますか?

  17. 17

    Azure Data LakeStoreとWebJob / Azure関数を使用したAzureSQL

  18. 18

    Application InsightのTelemetryClientスレッドは安全ですか?

  19. 19

    Application Insightと2017年の未処理の例外

  20. 20

    Azure WebJobが有効な(?)CRON式を受け入れない

  21. 21

    AzureポータルでWebJobを作成できません

  22. 22

    手動で作成したWebJobをAzureに公開する方法

  23. 23

    .net core azure WebJob 3.0.3UseTimersがありません

  24. 24

    webJob @ azureによるスケジュールされた再起動

  25. 25

    Azure WebJob-QueueTriggerのステージングと本番

  26. 26

    azure-webjobs-sdk-extensionsとトリガーされたWebjob

  27. 27

    Azure C# Webjob TimeTriggerが起動しない

  28. 28

    以前のWebJobがまだ実行されている場合、Azure Scheduled WebJobは開始されますか?

  29. 29

    Visual Studio 2013のアプリケーションからApplication Insightを削除する

ホットタグ

アーカイブ