Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Custom attributes are not populated in Azure Functions' Request spans

オープン
#2,917 コメント 7 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@heyams がすでに取り組んでいます。

2023年2月15日 から。

評価

この issue はまだ評価されていません。

説明

Needs: Attention :wave:
Expected behavior

In Application Insights, custom attributes assigned to Request spans (function invocations) are present.

Actual behavior

Only predefined pre-populated attributes are available as custom dimensions (like TriggerReason, FullName, OperationName etc) for function invocation requests.

Sample Application
public class TestFunctionHandler extends FunctionInvoker<Event, String> {

    @FunctionName("testFunction")
    public void execute(
            @QueueTrigger(name = "event", queueName = "queue",
                          connection = "AzureWebJobsStorage")
            Event event,
            ExecutionContext context) {
        Span.current().setAttribute("TestAttribute", event.getData());
        handleRequest(job, context);
    }
}

This code supposed to produce "TestAttribute" in "Custom Dimensions" panel of App Insights' Request, however, only default attributes are actually populated there:

Screenshot 2023-02-15 at 23 25 19
主要言語
Java
スター
326
フォーク
223
平均マージ
23時間 6分
マージ済み PR(30日)
13

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/ApplicationInsights-Java のほかの issue

microsoft/ApplicationInsights-Java の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。