This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Traces | |
description: "" | |
features: | |
- feature group: TracerProvider | |
features: | |
- feature: Create TracerProvider | |
optional: false | |
status: | |
go: supported | |
java: supported |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const { diag, DiagConsoleLogger, DiagLogLevel } = require('@opentelemetry/api'); | |
const { NodeTracerProvider } = require('@opentelemetry/node'); | |
const { NetInstrumentation } = require('@opentelemetry/instrumentation-net'); | |
const { DnsInstrumentation } = require('@opentelemetry/instrumentation-dns'); | |
const { registerInstrumentations } = require('@opentelemetry/instrumentation'); | |
const { SimpleSpanProcessor, ConsoleSpanExporter } = require('@opentelemetry/tracing'); | |
const provider = new NodeTracerProvider(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const appdynamics = require("appdynamics") | |
appdynamics.profile({ | |
controllerHostName: '.saas.appdynamics.com', | |
controllerPort: 443, | |
controllerSslEnabled: true, | |
accountName: '', | |
accountAccessKey: '', | |
applicationName: '', | |
tierName: '', | |
debug: true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function globalSearch(value, max = 100000) { | |
var stack = (function () { | |
iframe = document.createElement('iframe'); | |
document.body.appendChild(iframe); | |
var results = Object.getOwnPropertyNames(window).filter(p => !iframe.contentWindow.hasOwnProperty(p)).map(p => {return {type: typeof window[p], name: p, value: window[p]}}).reduce((c,p) => { | |
c.push([p.value, 'window.' + p.name]); | |
return c; | |
}, []); | |
document.body.removeChild(iframe); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
let flowmap = JSON.parse(fs.readFileSync('flowmap.json')); | |
const nodeCount = 1 | |
const edgeCount = Math.floor(nodeCount * 1.5) | |
const fileName = `flowmap-${nodeCount}.json` | |
const nodeString = JSON.stringify(flowmap.nodes[0]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TOKEN=$(curl -s -X POST -d "{\"username\": \"${1}\",\"password\": \"${2}\",\"scopes\": [\"download\"]}" https://identity.msrv.saas.appdynamics.com/v2.0/oauth/token) | |
TOKEN=${TOKEN##*'access_token": "'} | |
FILE=$(curl -s "https://download.appdynamics.com/download/downloadfile/?format=json&page=1&search=${3/ /+}") | |
FILE=${FILE##*'download_path":"'} | |
curl -L -O -H "Authorization: Bearer ${TOKEN%%\",*}" ${FILE%%\",*} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function anonymize_ip($ip) { | |
if($ip = @inet_pton($ip)) { | |
return inet_ntop(substr($ip, 0, strlen($ip)/2) . str_repeat( chr(0), strlen($ip)/2 )); | |
} | |
return '0.0.0.0'; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php namespace Codesleeve\AssetPipeline\Filters; | |
use DateTime; | |
use Session; | |
use Assetic\Cache\CacheInterface; | |
class ClientCacheFilter implements CacheInterface | |
{ | |
/** | |
* This is a decorator class which uses an underlying CacheInterface |