다음을 통해 공유


instrumentationManifest 요소

매니페스트의 루트 노드입니다.

<xs:element name="instrumentationManifest">
    <xs:complexType>
        <xs:complexContent>
            <xs:extension
                base="InstrumentationManifestType"
            >
                <xs:choice
                    maxOccurs="3"
                >
                    <xs:choice>
                        <xs:element name="metadata"
                            type="MetadataType"
                         />
                        <xs:element name="instrumentation"
                            type="InstrumentationType"
                         />
                    </xs:choice>
                    <xs:element name="localization"
                        type="LocalizationType"
                     />
                    <xs:any
                        processContents="lax"
                        minOccurs="0"
                        maxOccurs="unbounded"
                        namespace="##other"
                     />
                </xs:choice>
            </xs:extension>
        </xs:complexContent>
    </xs:complexType>
</xs:element>

자식 요소

요소 Type Description
계측 InstrumentationType 이 섹션에서는 하나 이상의 이벤트 공급자와 기록되는 이벤트를 정의합니다.
지역화 LocalizationType 이 섹션에서는 소비자가 표시하는 데 사용하는 지역화된 메시지 문자열을 정의합니다. 예를 들어 이 섹션에는 공급자 이름, 정의하는 이벤트 및 사용자가 정의하는 이벤트 특성(예: 채널, 작업 및 opcodes)에 대한 지역화된 메시지 문자열이 포함됩니다.
메타 데이터 MetadataType 이 섹션에서는 다른 매니페스트에서 사용할 수 있는 메타데이터 형식을 정의합니다. 예를 들어 Windows SDK의 \Include 폴더에 포함된 Winmeta.xml 파일을 참조하세요.

설명

instrumentationManifest 요소에는 다음 네임스페이스가 포함되어야 합니다.

xmlns="https://schemas.microsoft.com/win/2004/08/events" xmlns:win="https://manifests.microsoft.com/win/2004/08/windows/events" xmlns:xs="https://www.w3.org/2001/XMLSchema"

매니페스트에는 계측 섹션과 지역화 섹션이 포함되어야 합니다. 계측 섹션과 메타데이터 섹션은 상호 배타적입니다(동일한 매니페스트에서 둘 다 정의할 수 없음). 메타데이터 섹션이 포함된 매니페스트를 만들 수 있지만 서비스는 이를 사용하지 않습니다. 서비스에서 인식하는 유일한 메타데이터는 Winmeta.xml 파일에 있는 메타데이터입니다.

예제

다음 예제에서는 완전히 정의된 계측 매니페스트의 골격을 보여줍니다.

<instrumentationManifest
    xmlns="http://schemas.microsoft.com/win/2004/08/events" 
    xmlns:win="https://manifests.microsoft.com/win/2004/08/windows/events"
    xmlns:xs="https://www.w3.org/2001/XMLSchema"    
    >

    <instrumentation>
        <events>
            <provider ...>
                <channels>
                    <importChanel .../>
                    <channel .../>
                </channels>
                <levels>
                <level .../>
                </levels>
                <tasks>
                    <task .../>
                </tasks>
                <opcodes>
                    <opcode .../>
                </opcodes>
                <keywords>
                    <keyword .../>
                </keywords>
                <filters>
                    <filter .../>
                </filters>
                <maps>
                    <valueMap ...>
                        <map .../>
                    </valueMap>
                    <bitMap ...>
                        <map .../>
                    </bitMap>
                </maps>
                <namedQueries>
                    <patternMap ...>
                        <map .../>
                    </patternMap>  
                </namedQueries>
                <templates>
                    <template ...>
                        <data .../>
                        <UserData>
                            <!-- valid XML fragment -->
                        </UserData>
                    </template>
                </templates>
                <events>
                    <event .../>
                </events>
            </provider>
        </events>
    </instrumentation>

    <localization>
        <resources ...>
            <stringTable>
                <string .../>
            </stringTable>
        </resources>
    </localization>

</instrumentationManifest>

요구 사항

요구 사항
지원되는 최소 클라이언트
Windows Vista [데스크톱 앱만 해당]
지원되는 최소 서버
Windows Server 2008 [데스크톱 앱만 해당]