This file contains hidden or 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
<cfscript> | |
x = 'This has a tab in it.'; | |
echo(len(x) & '<br>'); | |
echo(len(trim(x)) & '<br>'); | |
</cfscript> |
This file contains hidden or 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
<cfscript> | |
otel = new Component javasettings='{maven:["com.datadoghq:dd-java-agent:1.49.0", "io.opentelemetry:opentelemetry-api:1.50.0"]}'{ | |
import io.opentelemetry.api.trace.Span; | |
function span(){ | |
return Span::current(); | |
} | |
} | |
otel.span().setAttribute("hello", "world"); |
This file contains hidden or 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
<cfscript> | |
aws = new Component javasettings='{maven:["com.datadoghq:dd-java-agent:1.49.0", "io.opentelemetry:opentelemetry-api:1.50.0"]}'{ | |
import io.opentelemetry.api.trace.Span; | |
function test(){ | |
return Span::current(); | |
} | |
} | |
aws.test().setAttribute("hello", "world"); |
This file contains hidden or 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
<cfscript> | |
aws = new Component javasettings='{maven:["com.datadoghq:dd-java-agent:1.49.0", "io.opentelemetry:opentelemetry-api:1.50.0"]}'{ | |
import io.opentelemetry.api.trace.Span; | |
function test(){ | |
return Span::current(); | |
} | |
} | |
try { |
This file contains hidden or 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
<cfscript> | |
try { | |
result = 10 / 0; | |
} | |
catch (expression e) { | |
writeOutput("Error caught: " & e.message); | |
} | |
catch (any e) { | |
writeOutput("Unknown Error: " & e.message); | |
} |
This file contains hidden or 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
<cfscript> | |
try { | |
result = 10 / 0; | |
} | |
catch (expression e) { | |
writeOutput("Error caught: " & e.message); | |
} | |
catch (any e) { | |
writeOutput("Unknown Error: " & e.message); | |
} |
This file contains hidden or 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
<cfscript> | |
try { | |
result = 10 / 0; | |
} | |
catch (expression e) { | |
writeOutput("Error caught: " & e.message); | |
} | |
catch (any e) { | |
writeOutput("Unknown Error: " & e.message); | |
} |
This file contains hidden or 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
<cfscript> | |
try { | |
result = 10 / 0; | |
} | |
catch (expression e) { | |
writeOutput("Error caught: " & e.message); | |
} | |
catch (any e) { | |
writeOutput("Unknown Error: " & e.message); | |
} |
This file contains hidden or 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
<cfscript> | |
function showDifference() { | |
var localVar = "I am var"; // Local only to this function | |
variables.globalVar = "I am variables"; // Accessible outside the function | |
} | |
writedump(showDifference()); | |
</cfscript> |
This file contains hidden or 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
<cfscript> | |
function showDifference() { | |
var localVar = "I am var"; // Local only to this function | |
variables.globalVar = "I am variables"; // Accessible outside the function | |
} | |
showDifference(); | |
</cfscript> |
NewerOlder